test_that("Day 10", {
example <- '[({(<(())[]>[[{[]{<()<>>
[(()[<>])]({[<{<<[]>>(
{([(<{}[<>[]}>{[]{[(<()>
(((({<>}<{<{<>}{[]{[]{}
[[<[([]))<([[{}[[()]]]
[{[{({}]{}}([{[{{{}}([]
{<[[]]>}<{[{[{[]{()[[[]
[<(<(<(<{}))><([]([]()
<{([([[(<>()){}]>(<<{{
<{([{{}}[<[[[<>{}]]]>[]]'
lines <- readLines(textConnection(example))
expect_equal(syntax_score(lines), 26397)
expect_equal(autocomplete(lines), 288957)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.