summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-06-17 23:30:59 +0900
committerNobuyoshi Nakada <[email protected]>2025-06-18 01:46:58 +0900
commitb0662602968f0431aaf2c220834dcfb14bfc3372 ()
tree8867b1a6106f812b339f350aafb3d92d837c5b80
parent1a527929a5f521cbccc177020fcf196ea5487d80 (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.rb24
-rw-r--r--tool/test/testunit/tests_for_parallel/ptest_forth.rb8
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