Skip to content

Commit 8d7b044

Browse files
committed
chore: add unit test
1 parent 5d01b88 commit 8d7b044

8 files changed

Lines changed: 1115 additions & 14 deletions

File tree

2023/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Run the days with
22

33
```bash
4-
scala-cli run src/main/scala/day01.scala --main-class com.markkovari.adventofcode.part1
4+
scala-cli run src/main/scala/day02.scala --main-class com.markkovari.adventofcode.day02.part1
55
```
66

77
- Soon will add a justfile with params to run the days, but realistocly not going to happen

2023/build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ version := "1.0"
2323
// Want to use a published library in your project?
2424
// You can define other libraries as dependencies in your build like this:
2525

26-
libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "2.3.0"
26+
libraryDependencies ++= Seq(
27+
"org.scalatest" %% "scalatest" % "3.2.9" % Test
28+
)
2729

2830
// Here, `libraryDependencies` is a set of dependencies, and by using `+=`,
2931
// we're adding the scala-parser-combinators dependency to the set of dependencies
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green
2+
Game 2: 1 blue, 2 green; 3 green, 4 blue, 1 red; 1 green, 1 blue
3+
Game 3: 8 green, 6 blue, 20 red; 5 blue, 4 red, 13 green; 5 green, 1 red
4+
Game 4: 1 green, 3 red, 6 blue; 3 green, 6 red; 3 green, 15 blue, 14 red
5+
Game 5: 6 red, 1 blue, 3 green; 2 blue, 1 red, 2 green

0 commit comments

Comments
 (0)