From 5a8384ba7872c289fcf232dc19bd0e115b819372 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sat, 18 Dec 2021 23:50:19 +0000 Subject: day 18: remove tests --- 18.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/18.py b/18.py index f1b1b86..ddba81d 100644 --- a/18.py +++ b/18.py @@ -50,19 +50,6 @@ def try_explode(n, depth=0): else: return Pair(try_add(n, val.car, car, cdr, car), val.cdr) -tests = [ - ('[[[[[9,8],1],2],3],4]', '[[[[0,9],2],3],4]'), - ('[7,[6,[5,[4,[3,2]]]]]', '[7,[6,[5,[7,0]]]]'), - ('[[6,[5,[4,[3,2]]]],1]', '[[6,[5,[7,0]]],3]'), - ('[[3,[2,[1,[7,3]]]],[6,[5,[4,[3,2]]]]]', '[[3,[2,[8,0]]],[9,[5,[4,[3,2]]]]]'), - ('[[3,[2,[8,0]]],[9,[5,[4,[3,2]]]]]', '[[3,[2,[8,0]]],[9,[5,[7,0]]]]'), -] - -for test, expect in tests: - test = parse(test) - try_explode(test) - assert(test == parse(expect)) - def try_split(n, access=lambda n: n): content = access(n) if is_pair(content): -- cgit v1.2.3-54-g00ecf