[info] == org.scalakoans.Koans == [info] Suite Starting: AboutAsserts [info] Test Starting: should be true [info] ***************************************** [info] ***************************************** [info] [info] [info] [info] Please meditate on koan "should be true" of suite "AboutAsserts" [info] [info] [info] [info] ***************************************** [info] *****************************************
新しいコンソールで、該当のソースコードAboutAsserts.scalaを開く。
1
$ vi src/test/scala/org/scalakoans/AboutAsserts.scala
問題を解く(修正する)
1 2 3 4 5 6 7
7 koan ("should be true") { 8 assert(false) // should be true 9 } ↓↓↓ 7 koan ("should be true") { 8 assert(true) // should be true 9 }
セーブすると、テストが再実行される。合って入れば次の問題へ移る。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[info] == org.scalakoans.Koans == [info] Suite Starting: AboutAsserts [info] Test Starting: should be true [info] Test Passed: should be true [info] Test Starting: should be true with message [info] ***************************************** [info] ***************************************** [info] [info] [info] [info] Please meditate on koan "should be true with message" of suite "AboutAsserts" [info] [info] [info] [info] ***************************************** [info] *****************************************