scalatest-matcher.md Matchers in scalatest scalatestã§ã¯ a should be (b)ã®ããã«ããæ¤æ»å¯¾è±¡ã®å¤ããã§ãããã¨ã(ãã®ä¾ã§ã¯ãaã¯bã§ãããã¨ã)ã¨ããæ¸ãæ¹ãããã ããã§ããããæå®ããæ¹æ³(Matcherã¨å¼ã¶)ãããã¤ãããã®ã§ç°¡åã«ã¾ã¨ãã¦ã¿ã ç価æ§(equality) ä¸è¨ã®ä¾ã®ããã« be ã®å¾ã®()ã®ä¸ã«æå¾ å¤ãæ¸ãã name should be ("scala") be ã®ä»£ããã« equal ã使ããã name should equal ("scala") be 㨠equalã¯ãç¹ã«æ©è½çãªéãã¯ãªãã®ã§ããã¹ãè¨è¿°ã®æèçã«ãã£ã¦ããæ¹ã使ãã°è¯ãã objectã®ç価æ§ãå¤å®ã§ããã 1 :: 2 :: Nil should equal (List(1,2)) scalaè¨èªã«ãããç価æ§(
{{#tags}}- {{label}}
{{/tags}}