Commit 5ebccee
committed
check zeros
raise when assert_linear_performance measures only zeros to check the following error:
```
1) Error:
TestRegexp#test_linear_performance:
Test::Unit::ProxyError: nil can't be coerced into Integer
/home/opc/ruby/src/master/test/ruby/test_regexp.rb:2301:in 'TestRegexp#test_linear_performance'
```1 parent f045a82 commit 5ebccee
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
914 | | - | |
| 914 | + | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
| 917 | + | |
| 918 | + | |
918 | 919 | | |
919 | 920 | | |
920 | 921 | | |
| |||
0 commit comments