diff options
Diffstat (limited to 'test/irb/test_context.rb')
-rw-r--r-- | test/irb/test_context.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index c5dded3d52..ba3b94ce49 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -462,7 +462,6 @@ module TestIRB if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty? expected = [ :*, /Traceback \(most recent call last\):\n/, - :*, /\t... 8 levels...\n/, :*, /\t 2: from \(irb\):1:in `<main>'\n/, :*, /\t 1: from \(irb\):1:in `hoge'\n/, :*, /\(irb\):1:in `fuga': unhandled exception\n/, @@ -472,7 +471,7 @@ module TestIRB :*, /\(irb\):1:in `fuga': unhandled exception\n/, :*, /\tfrom \(irb\):1:in `hoge'\n/, :*, /\tfrom \(irb\):1:in `<main>'\n/, - :*, /\t... 8 levels...\n/, + :* ] end assert_pattern_list(expected, out) @@ -494,7 +493,6 @@ module TestIRB if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty? expected = [ :*, /Traceback \(most recent call last\):\n/, - :*, /\t... 8 levels...\n/, :*, /\t 2: from \(irb\):1:in `<main>'\n/, :*, /\t 1: from \(irb\):1:in `hoge'\n/, :*, /\(irb\):1:in `fuga': A\\xF3B \(RuntimeError\)\n/, @@ -504,7 +502,7 @@ module TestIRB :*, /\(irb\):1:in `fuga': A\\xF3B \(RuntimeError\)\n/, :*, /\tfrom \(irb\):1:in `hoge'\n/, :*, /\tfrom \(irb\):1:in `<main>'\n/, - :*, /\t... 8 levels...\n/, + :* ] end assert_pattern_list(expected, out) @@ -532,7 +530,7 @@ module TestIRB if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty? expected = [ :*, /Traceback \(most recent call last\):\n/, - :*, /\t... 27 levels...\n/, + :*, /\t... \d+ levels...\n/, :*, /\t16: from \(irb\):1:in `a4'\n/, :*, /\t15: from \(irb\):1:in `a5'\n/, :*, /\t14: from \(irb\):1:in `a6'\n/, @@ -570,7 +568,7 @@ module TestIRB :*, /\tfrom \(irb\):1:in `a6'\n/, :*, /\tfrom \(irb\):1:in `a5'\n/, :*, /\tfrom \(irb\):1:in `a4'\n/, - :*, /\t... 27 levels...\n/, + :*, /\t... \d+ levels...\n/, ] end assert_pattern_list(expected, out) |