Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.16 KB

activity_1.md

File metadata and controls

31 lines (19 loc) · 1.16 KB

Activity 1

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

Instructions

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

Extension exercise 🚗

Maybe try adding a few more tests to Exercise001Test.scala - could you test the countLinuxUsers further?

Moving on...

Once you've got all tests passing then it is time to move on to Activity 2