Skip to content

Day 5 / May 20 (Fri)

Live Coding Session by Mateusz

A live coding session by Mateusz on his own solution to Scala Exercise: Intertwine Two Collections.

ScalaCheck

Introduction to ScalaCheck using Mateusz's my-zip.

Hunting down issues using ScalaCheck:

  1. git clone https://github.com/MateuszSab/my-zip/
  2. Install ScalaCheck
  3. https://www.scalatest.org/user_guide/writing_scalacheck_style_properties

Use the following code:

check((a: List[Int], b: List[String]) => myzip(a, b).size == (a ::: b).size)

Learn More

  1. ScalaCheck User Guide
  2. ScalaTest + ScalaCheck
  3. Property-based testing

Github Workflows

Introduction to Github Workflows by reviewing existing workflows:

Others

Home Exercise

Create a Github Workflow for your own project to execute sbt test on a push.

Back to top