Functional Programming, Scala, Unit Testing, Zio, Zio Effects.
program using the testM and environment methods as follows: import zio._ import zio.console._ import zio.test._ import zio.test.environment._ object ProgramTest extends DefaultRunnableSpec { def spec: ZSpec[TestEnvironment, Any] = suite("Program")( testM("should read a line of input from the