Rubyã®è©¦è¡é¯èª¤æ¯æ´ã»ãã¹ãæ¯æ´ãã¼ã«ã ã# =>ãã¨ãã注éè¨å·ãå ¥ããè¡ã«å¼ã®å¤ã注éããããTest::Unitã®assertionãRSpecã®expectationãèªåã§å ¥ãã¦ããã便å©ãªãã¼ã«ã rcodetoolsããã±ã¼ã¸ã«å ¥ã£ã¦ãã¦ãRubyGemsããã±ã¼ã¸ãããã®ã§ããgem install rcodetoolsãã§ã¤ã³ã¹ãã¼ã«ã§ããã READMEãã⦠a, b = "foo", "baz" a + b # => a.size # => ããããxmpfilterãã«ãããã¨ã a, b = "foo", "baz" a + b # => "foobaz" a.size # => 3 ãããªãã Test::Unitã§ã¯ã def test_insertion @o.insert "bar" @o.insert "baz" @o.size # => @o.l
{{#tags}}- {{label}}
{{/tags}}