Advent of Code - 2017 (Scala3 Edition)
Note: There are implementations of this in Scala (JVM and native), Kotlin, Haskell and Eta. If you like any of these ... star it :).
To make this work you need to ...
- install git (
brew install git
) - install sbt (
brew install sbt
) - clone the repo (
git clone ...
) - run the tests (
sbt test
)- this will run all tests (ScalaTest, ScalaCheck)
- you can run specific tests with
sbt "testOnly aoc.Day01Spec"
- you can run
sbt "testOnly aoc.Day*Spec -- -l aoc.SlowTest"
to only run the fast tests (exclude the slow tests) - you can run
sbt "testOnly aoc.Day*Spec -- -n aoc.SolutionTest"
to only run the tests that will test for the correct solutions
- run the JVM main (
sbt run
)
Have fun!!!