inst/run-day08.R

library(adventofcode18)
x <- readLines("./inst/input08.txt")

p1 <- parse_license(x)
p2 <- parse_license2(x)

stopifnot(sum(p1) == aoc18_solutions$day08a)
stopifnot(p2 == aoc18_solutions$day08b)
tjmahr/adventofcode18 documentation built on May 24, 2019, 4:10 p.m.