るりまサーチ

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.008秒)
トップページ > クエリ:assert_equal[x] > 種類:ライブラリ[x]

別のキーワード

  1. mkmf try_static_assert
  2. kernel try_static_assert
  3. try_static_assert kernel
  4. try_static_assert mkmf
  5. power_assert

キーワード

検索結果

minitest/unit (13.0)

ユニットテストを行うためのライブラリです。

...end
# teardown はあまり使わない
def teardown
@foo = nil
end

def test_foo
assert_equal
"foo", @foo.foo
end

def test_bar
assert_equal
"bar", @foo.bar
end
end

または MiniTest::Unit.autorun を省略して以下のように書くこ...

test/unit (13.0)

ユニットテストを行うためのライブラリです。

...ase
def setup
@obj = Foo.new
end

# def teardown
# end

def test_foo
assert_equal
("foo", @obj.foo)
end
def test_bar
assert_equal
("bar", @obj.bar)
end
end

テストを実行するには上で用意した test_foo.rb を実...
...Base directory of test suites.
-x, --exclude PATTERN Exclude test files on pattern.
-Idirectory Add library load path
--[no-]gc-stress Set GC.stress as true

複数のテストを一度に行う場合、以下のように書いた...