inst/run-day18.R

library(adventofcode20)
x <- readLines("./inst/input18.txt")

p1 <- sum(eval_new_math(x))
p2 <- sum(eval_new_new_math(x))

stopifnot(p1 == aoc20_solutions$day18a)
stopifnot(p2 == aoc20_solutions$day18b)
tjmahr/adventofcode20 documentation built on Dec. 31, 2020, 8:39 a.m.