-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
scala2/src/test/scala/jurisk/adventofcode/y2023/Advent01Spec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package jurisk.adventofcode.y2023 | ||
|
||
import org.scalatest.flatspec.AnyFlatSpec | ||
import org.scalatest.matchers.should.Matchers._ | ||
import Advent01._ | ||
|
||
class Advent01Spec extends AnyFlatSpec { | ||
"Advent01" should "test part 1" in { | ||
part1(parseFile("2023/01-test-1.txt")) shouldEqual 142 | ||
} | ||
|
||
it should "test part 2" in { | ||
part2(parseFile("2023/01-test-2.txt")) shouldEqual 281 | ||
} | ||
|
||
it should "real part 1" in { | ||
part1(parseFile("2023/01.txt")) shouldEqual 54081 | ||
} | ||
|
||
it should "real part 2" in { | ||
part2(parseFile("2023/01.txt")) shouldEqual 54649 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters