inst/run-day04.R

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

p1 <- check_for_valid_passports(x)
p2 <- check_for_valider_passports(x)

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