Hiroshi SHIBATA
af17a34c88
Added explicitly begin-end block for Ruby 2.4.
...
strscan, ipaddr and some default gems still support Ruby 2.4.
After this, I extract this CoreAssertions to their repositories.
2024-09-10 16:00:29 +09:00
Hiroshi SHIBATA
ebd44ef570
Suppress warning for shadowing outer local variable
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
bfa4073dc2
core_assertions.rb: Support old rubies
...
Some symbol argument might not be accepted by Process.clock_gettime.
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
e67ef294fe
core_assertions.rb: Prefer CPU time clocks
...
To prevent influence from other processes.
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
7bb789bf99
core_assertions.rb: Extract common code block
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada
d86deaf383
core_assertions.rb: Tweak timeout limit
...
Increase the timeout limit when variance at rehearsal is small.
2024-09-10 16:00:29 +09:00
Takashi Kokubun
afbae64f05
Skip assert_linear_performance for RJIT
2024-09-10 16:00:29 +09:00
Hiroshi SHIBATA
66ad6e533e
Added assert_linear_performance for URI tests
2023-03-29 15:27:07 +09:00
nagachika
02bee9d4d4
merge revision(s) f229b36087
: [Backport #18989 ]
...
Fix test fail with assert_ractor outside of ruby/ruby repo
Revert 806583c093
---
tool/lib/core_assertions.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2023-03-25 10:12:02 +09:00
Takashi Kokubun
1a63468831
Prepare for removing RubyVM::JIT ( #5262 )
2021-12-13 23:07:46 -08:00
Nobuyoshi Nakada
438220f063
Let pretty_inspect work once at first
...
For older pp.rb which did not need io/console, and dealing with
`LoadError`.
2021-11-30 14:16:33 +09:00
Nobuyoshi Nakada
d400c44a55
Load io/console earlier
...
Something goes wrong at loading libraries inside `mu_pp` in the
test overriding `Class.inherited`.
2021-11-30 13:15:22 +09:00
Pavel Rosický
94882df3a2
[ruby/digest] jruby support
...
2e9dc14693
2021-10-12 20:46:13 +09:00
Nobuyoshi Nakada
c423cc932e
Refactor Test::Unit::CoreAssertions#assert_nothing_raised
...
* Separate exception classes to be rescued or reraised
* Use the filtered backtrace in the failure message
* Raise a new `AssertionFailedError` with the original backtrace
2021-10-09 18:14:21 +09:00
Nobuyoshi Nakada
3932227d96
Unify Test::Unit::Assertions#message
...
Merge `Test::Unit::CoreAssertions#message`.
2021-10-09 16:17:01 +09:00
Nobuyoshi Nakada
489c22b17f
Let Test::Unit::CoreAssertions::AllFailures#for
yield the key
...
Similar to `Test::Unit::CoreAssertions::AllFailures#foreach`.
2021-10-09 14:28:27 +09:00
Nobuyoshi Nakada
aaa9805e7e
Add unique token to separated runner
...
Same as Test::Unit::CoreAssertions#assert_no_memory_leak.
2021-09-13 15:47:45 +09:00
Nobuyoshi Nakada
30b4da2bc1
Update the test tool path
2021-09-11 16:26:00 +09:00
Hiroshi SHIBATA
806583c093
Change include order for test assertions
2021-09-11 15:17:38 +09:00
Hiroshi SHIBATA
9583d2057d
Added missing Assertions for assert_file_predicate
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
d05383812a
Replace Test::Assertion and Test::Skip to Test::Unit::AssertionFailedError and Test::Unit::PendedError
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
151a1cd45e
Fixed inconsistent require order for assertions and core_assertions
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
4505be6fd0
Removed MiniTest hack for the default gems repo
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
9b026ca39b
Integrate Minitest to Test
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
8ec187c091
Replace MiniTest::Unit to Test::Unit::Runner
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
1bec4f251d
Move MiniTest::Assertions to Test::Unit::Assertions
2021-09-11 08:48:03 +09:00
Hiroshi SHIBATA
544e37f184
Simplify conditions for CoreAssertion initialization
2021-09-06 19:31:24 +09:00
Nobuyoshi Nakada
3bb6410914
Use equivalent __FILE__
2021-08-05 14:15:30 +09:00
Nobuyoshi Nakada
5f2987d6c2
Fix relative paths from core_assertions.rb
2021-08-04 20:39:12 +09:00
Nobuyoshi Nakada
1f2b3f2529
Remove an extraneous escape
...
Since a3fb97465d
, this string is not inside the here-document.
2021-08-04 16:59:18 +09:00
Nobuyoshi Nakada
690385014a
Move core_assertions.rb from test/unit
...
This file contains extended assertions for ruby core which do not
belong to test/unit.
2021-07-11 19:56:53 +09:00