diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index 1fb157215..c5dded3d5 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -462,6 +462,7 @@ def test_eval_input_with_exception 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 `
'\n/, :*, /\t 1: from \(irb\):1:in `hoge'\n/, :*, /\(irb\):1:in `fuga': unhandled exception\n/, @@ -471,6 +472,7 @@ def test_eval_input_with_exception :*, /\(irb\):1:in `fuga': unhandled exception\n/, :*, /\tfrom \(irb\):1:in `hoge'\n/, :*, /\tfrom \(irb\):1:in `
'\n/, + :*, /\t... 8 levels...\n/, ] end assert_pattern_list(expected, out) @@ -492,6 +494,7 @@ def test_eval_input_with_invalid_byte_sequence_exception 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 `
'\n/, :*, /\t 1: from \(irb\):1:in `hoge'\n/, :*, /\(irb\):1:in `fuga': A\\xF3B \(RuntimeError\)\n/, @@ -501,6 +504,7 @@ def test_eval_input_with_invalid_byte_sequence_exception :*, /\(irb\):1:in `fuga': A\\xF3B \(RuntimeError\)\n/, :*, /\tfrom \(irb\):1:in `hoge'\n/, :*, /\tfrom \(irb\):1:in `
'\n/, + :*, /\t... 8 levels...\n/, ] end assert_pattern_list(expected, out) @@ -528,7 +532,7 @@ def test_eval_input_with_long_exception if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty? expected = [ :*, /Traceback \(most recent call last\):\n/, - :*, /\t... 5 levels...\n/, + :*, /\t... 27 levels...\n/, :*, /\t16: from \(irb\):1:in `a4'\n/, :*, /\t15: from \(irb\):1:in `a5'\n/, :*, /\t14: from \(irb\):1:in `a6'\n/, @@ -566,7 +570,7 @@ def test_eval_input_with_long_exception :*, /\tfrom \(irb\):1:in `a6'\n/, :*, /\tfrom \(irb\):1:in `a5'\n/, :*, /\tfrom \(irb\):1:in `a4'\n/, - :*, /\t... 5 levels...\n/, + :*, /\t... 27 levels...\n/, ] end assert_pattern_list(expected, out)