[前][次][番号順一覧][スレッド一覧]

ruby-changes:67362

From: Hiroshi <ko1@a...>
Date: Mon, 30 Aug 2021 12:39:47 +0900 (JST)
Subject: [ruby-changes:67362] b17dc55017 (master): [ruby/irb] Added the extra stdout message with test-unit

https://git.ruby-lang.org/ruby.git/commit/?id=b17dc55017

From b17dc550176385e34404672f4188af471e62c676 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Mon, 31 May 2021 19:10:50 +0900
Subject: [ruby/irb] Added the extra stdout message with test-unit

https://github.com/ruby/irb/commit/b153d587a1
---
 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 1fb1572..c5dded3 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -462,6 +462,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L462
       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/,
@@ -471,6 +472,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L472
           :*, /\(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)
@@ -492,6 +494,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L494
       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/,
@@ -501,6 +504,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L504
           :*, /\(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)
@@ -528,7 +532,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L532
       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 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L570
           :*, /\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)
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]