inst/run-day06.R

library(adventofcode21)
x <- scan("./inst/input06.txt", sep = ",")

p1 <- f06a(x)
p2 <- f06b(x)

stopifnot(p1 == aoc_solutions$day06a)
stopifnot(p2 == aoc_solutions$day06b)
Bisaloo/adventofcode21 documentation built on Dec. 17, 2021, 11:48 a.m.