ブックマーク / etorreborre.github.io (1)

  • specs2.org

    class HelloWorldSpec extends Specification: def is = s2""" This is a specification for the 'Hello world' string The 'Hello world' string should contain 11 characters $e1 start with 'Hello' $e2 end with 'world' $e3 """ def e1 = "Hello world" must haveSize(11) def e2 = "Hello world" must startWith("Hello") def e3 = "Hello world" must endWith("world") /** This is the "Unit" style for specifications *

    takaken1123
    takaken1123 2016/09/09
    [2016-09-09 22:03]
  • 1