diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-06-17 23:30:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-06-18 01:46:58 +0900 |
commit | b0662602968f0431aaf2c220834dcfb14bfc3372 () | |
tree | 8867b1a6106f812b339f350aafb3d92d837c5b80 | |
parent | 1a527929a5f521cbccc177020fcf196ea5487d80 (diff) |
Follow up testunit
* Update method names. * Sort shuffled tests by names.
Notes: Merged: https://.com/ruby/ruby/pull/13640
-rw-r--r-- | tool/test/testunit/test_parallel.rb | 24 | ||||
-rw-r--r-- | tool/test/testunit/tests_for_parallel/ptest_forth.rb | 8 |
2 files changed, 17 insertions, 15 deletions
@@ -126,17 +126,19 @@ module TestParallel assert_not_nil($1, "'done' was not found") result = Marshal.load($1.chomp.unpack1("m")) - assert_equal(5, result[0]) - assert_equal(12, result[1]) - assert_kind_of(Array,result[2]) - assert_kind_of(Array,result[3]) - assert_kind_of(Array,result[4]) - assert_kind_of(Array,result[2][1]) - assert_kind_of(Test::Unit::AssertionFailedError,result[2][0][2]) - assert_kind_of(Test::Unit::PendedError,result[2][1][2]) - assert_kind_of(Test::Unit::PendedError,result[2][2][2]) - assert_kind_of(Exception, result[2][3][2]) - assert_equal(result[5], "TestE") end end @@ -8,19 +8,19 @@ class TestE < Test::Unit::TestCase assert_equal(1,1) end - def test_always_skip - skip "always" end def test_always_fail assert_equal(0,1) end - def test_skip_after_unknown_error begin raise UnknownError, "unknown error" rescue - skip "after raise" end end |