- Clone this project locally
git clone [email protected]:nayish/regex-workshop.git
- In Intellij, Select
File
>Open...
and choose thebuild.sbt
file in the cloned repo. - Click
Open As Project
- Click
Trust Project
(This may take a few minutes ~2m)
You can run the tests for all the steps by running src/test/scala/test/Test.scala
.
- Run them, and you should see 14 failing steps (since we haven't implemented any of them)
You can run the tests for a specific step by editing the test configuration and setting Program arguments
to be the <step>
.
- Try it now on step 1 (
Program arguments: "1"
), and you should have one failing test"should have answer for step 1"
.
In order to solve a step you will need to enter a Regex in the appropriate answer value in ./src/main/scala/solution/Solution.scala
.
Now that you are done you can begin with step 1.