@@ -462,7 +462,6 @@ def test_eval_input_with_exception
462
462
if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT . tty?
463
463
expected = [
464
464
:* , /Traceback \( most recent call last\) :\n / ,
465
- :* , /\t ... 8 levels...\n / ,
466
465
:* , /\t 2: from \( irb\) :1:in `<main>'\n / ,
467
466
:* , /\t 1: from \( irb\) :1:in `hoge'\n / ,
468
467
:* , /\( irb\) :1:in `fuga': unhandled exception\n / ,
@@ -472,7 +471,7 @@ def test_eval_input_with_exception
472
471
:* , /\( irb\) :1:in `fuga': unhandled exception\n / ,
473
472
:* , /\t from \( irb\) :1:in `hoge'\n / ,
474
473
:* , /\t from \( irb\) :1:in `<main>'\n / ,
475
- :* , / \t ... 8 levels... \n / ,
474
+ :*
476
475
]
477
476
end
478
477
assert_pattern_list ( expected , out )
@@ -494,7 +493,6 @@ def test_eval_input_with_invalid_byte_sequence_exception
494
493
if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT . tty?
495
494
expected = [
496
495
:* , /Traceback \( most recent call last\) :\n / ,
497
- :* , /\t ... 8 levels...\n / ,
498
496
:* , /\t 2: from \( irb\) :1:in `<main>'\n / ,
499
497
:* , /\t 1: from \( irb\) :1:in `hoge'\n / ,
500
498
:* , /\( irb\) :1:in `fuga': A\\ xF3B \( RuntimeError\) \n / ,
@@ -504,7 +502,7 @@ def test_eval_input_with_invalid_byte_sequence_exception
504
502
:* , /\( irb\) :1:in `fuga': A\\ xF3B \( RuntimeError\) \n / ,
505
503
:* , /\t from \( irb\) :1:in `hoge'\n / ,
506
504
:* , /\t from \( irb\) :1:in `<main>'\n / ,
507
- :* , / \t ... 8 levels... \n / ,
505
+ :*
508
506
]
509
507
end
510
508
assert_pattern_list ( expected , out )
@@ -532,7 +530,7 @@ def test_eval_input_with_long_exception
532
530
if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT . tty?
533
531
expected = [
534
532
:* , /Traceback \( most recent call last\) :\n / ,
535
- :* , /\t ... 27 levels...\n / ,
533
+ :* , /\t ... \d + levels...\n / ,
536
534
:* , /\t 16: from \( irb\) :1:in `a4'\n / ,
537
535
:* , /\t 15: from \( irb\) :1:in `a5'\n / ,
538
536
:* , /\t 14: from \( irb\) :1:in `a6'\n / ,
@@ -570,7 +568,7 @@ def test_eval_input_with_long_exception
570
568
:* , /\t from \( irb\) :1:in `a6'\n / ,
571
569
:* , /\t from \( irb\) :1:in `a5'\n / ,
572
570
:* , /\t from \( irb\) :1:in `a4'\n / ,
573
- :* , /\t ... 27 levels...\n / ,
571
+ :* , /\t ... \d + levels...\n / ,
574
572
]
575
573
end
576
574
assert_pattern_list ( expected , out )
0 commit comments