Skip to content

nik-kashi/scala3-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Personal sandbox

  1. Test for output stream:

    For testing functionality of a function with side effect we can use spy or mock to access the changes that are applying to system. Thus, it is necessary to use composition for accessing those methods(output stream)

    See Printer.scala and PrinterSpecs.scala

  2. Test for calculating the area of a triangle:

    As dots of a triangle are global properties with a wide range of inputs, the best solution for testing is property testing

    See Triangle.scala and TriangleSpecs.scala

  3. The third item

    It had done with standard Scala API for reading file

    See LeagueRanking.scala and LeagueRankingSpecs.scala

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages