Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

TDDとScalaに関するsugimoriのブックマーク (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 *

    sugimori
    sugimori 2012/02/16
    specs2試してみよう
  • 1