Rubyについて Part 36
at TECH
[
2ch
|
▼Menu
]
■コピペモード
□
スレを通常表示
□
オプションモード
□このスレッドのURL
■項目テキスト
50:デフォルトの名無しさん 09/06/29 21:13:46 隔離スレあるんだからいい加減そっち行ったら? 51:デフォルトの名無しさん 09/06/29 21:26:02 >>20 実行結果出力例が納得いかないんだが、test-arithmeticの結果、mathの結果、は別途表示されないの? それはともかく、 deftest "test_plus" do check ["1+2", 3], ["1+2+3", 6] end deftest "test_times" do check ["2*2", 4] end deftest "test_arithmetic" do combine_results "test_plus", "test_times" end deftest "math" do test_arithmetic end に対して pass ... (math test_arithmetic test_plus): 1+2 == 3 pass ... (math test_arithmetic test_plus): 1+2+3 == 6 pass ... (math test_arithmetic test_times): 2*2 == 4 と表示させるテストライブラリくらいはあっという間に書けた。 52:デフォルトの名無しさん 09/06/29 21:33:00 evalかな そうだとすると、違わないんだけどなんか違うようなやっぱり違わないような なんだこの無形の障壁は
次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
レスジャンプ
mixiチェック!
Twitterに投稿
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch
5389日前に更新/227 KB
担当:undef