))) test-unit-power_assertããªãªã¼ã¹Groovyãªã©ããã¤ãã®è¨èªã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã«ã¯ããã¹ã失ææã«ã³ã¼ãã®åå¼ã®å¤ãåºåããPower Assertã¨å¼ã°ããæ©è½ãããã¾ãã ä»åãRuby 2.0ä»¥ä¸ + test-unitåãã«åæ§ã®ãã®ãå®è£ ãã¦ã¿ã¾ãã(test-unit-power_assert)ã å©ç¨ä¾ã¯ä»¥ä¸ã®éãã require 'test/unit' require 'test/unit/power_assert' class MyTest < Test::Unit::TestCase def test_failed power_assert do "0".class == "3".to_i.times.map {|i| i + 1 }.class end end end power_assertã¡ã½ããã«ãã¹ã対象ã®å¼ããããã¯ã¨ã
{{#tags}}- {{label}}
{{/tags}}