Skip to content

Instantly share code, notes, and snippets.

@windmaomao
Created September 19, 2020 13:26
Show Gist options
  • Save windmaomao/c407e4706d604b7543aee081d4bd8c78 to your computer and use it in GitHub Desktop.
Save windmaomao/c407e4706d604b7543aee081d4bd8c78 to your computer and use it in GitHub Desktop.
// aoc2015-day0-test
@Test fun day01Part1Example() {
val part1 = { s: String ->
d.part1(d.extractModels(s))
}
assertEquals(0, part1("(())"))
assertEquals(0, part1("()()"))
}
@Test fun day01Part1() {
assertEquals(280, d.part1(ops))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment