library(adventofcode17)
x <- readLines("./inst/input04.txt")
p1 <- x %>% count_valid_passphrases(rule = no_repeated_words)
p2 <- x %>% count_valid_passphrases(rule = no_anagrams)
stopifnot(p1 == aoc17_solutions$day04a)
stopifnot(p2 == aoc17_solutions$day04b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.