Repository navigation
Commit 8298bc6
Add Time.new specs for strings ending where a colon is expected
Every other error-case string in core/time/new_spec.rb carries a trailing
zone suffix, so no example ended at the byte where the parser expects a
':'. That is the one position where the message stops short of the
offending byte, and it was unexercised.
The gap turned up while investigating jruby/jruby#9623, where these three
inputs read past the end of the string instead of raising ArgumentError.1 parent 8209a75 commit 8298bc6
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
573 | 590 | | |
574 | 591 | | |
575 | 592 | | |
| |||
0 commit comments