This set of Scala challenges introduce exercises for working with the Scala syntax.
It includes:
- Methods, variable definitions and data types
- Conditionals
- Looping
- Initial review of Scala objects
In the Exercise001Test.scala file you'll find the tests - work through each test and implement the corresponding function within the Exercise001.scala file.
You can run your tests by running the following command:
sbt test
HINT 🤔: If you need to ignore tests whilst you're working through things you can do that by popping the ignore
in front of it.
https://www.scalatest.org/user_guide/tagging_your_tests
Maybe try adding a few more tests to Exercise001Test.scala - could you test the countLinuxUsers
further?
Once you've got all tests passing then it is time to move on to Activity 2