fix multiple-loading regression

This commit is contained in:
2021-06-14 00:02:26 -06:00
parent 3de68c4b79
commit b93defbaf7
3 changed files with 6 additions and 9 deletions

View File

@@ -87,13 +87,11 @@
// Day 8
(when (<= 0 (days.indexOf 8))
(print "BootCodeExample")
(let [example (new BootCodeExample)]
(example.setBreakHandler (lambda [example] (assert (= 5 .accumulator example))))
(example.run))
(print "BootCodeReal")
(let [bootCode (new BootCodeReal)]
(bootCode.setBreakHandler (lambda [bootCode] (assert (= 2058 (print bootCode.accumulator)))))
(bootCode.setBreakHandler (lambda [bootCode] (assert (= 2058 bootCode.accumulator))))
(bootCode.run))
/* (print "BootCodeFixExample")
(let [bootCode (new BootCodeFixExample)]