summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-12-18 23:50:19 +0000
committerTomasz Kramkowski <tk@the-tk.com>2021-12-18 23:50:19 +0000
commit5a8384ba7872c289fcf232dc19bd0e115b819372 (patch)
tree2030941b5bdb315787dffed93dc24f4903f2a645
parent2a84108f1223acfaa1680995d02686f2260912b2 (diff)
downloadaoc2021-5a8384ba7872c289fcf232dc19bd0e115b819372.tar.gz
aoc2021-5a8384ba7872c289fcf232dc19bd0e115b819372.tar.xz
aoc2021-5a8384ba7872c289fcf232dc19bd0e115b819372.zip
day 18: remove tests
-rw-r--r--18.py13
1 files changed, 0 insertions, 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):