From a74107a18ee9c2c890ebd0b1a9f8b59315f7858e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 31 May 2021 19:10:50 +0900 Subject: [PATCH] Added the extra stdout message with test-unit --- test/irb/test_context.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index f20982106..67f141440 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -461,6 +461,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/, @@ -470,6 +471,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) @@ -491,6 +493,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/, @@ -500,6 +503,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) @@ -527,7 +531,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/, @@ -565,7 +569,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)