1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[WIP] add error_squiggle gem

```
$ ./local/bin/ruby -e '1.time {}'
-e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)

1.time {}
 ^^^^^
Did you mean?  times
```

https://bugs.ruby-lang.org/issues/17930
This commit is contained in:
Yusuke Endoh 2021-06-18 17:11:39 +09:00
parent 03dc664493
commit e946049665
Notes: git 2021-06-29 23:46:18 +09:00
14 changed files with 1503 additions and 8 deletions

View file

@ -151,6 +151,6 @@ class TestNameError < Test::Unit::TestCase
error = assert_raise(NameError) do
receiver::FOO
end
assert_equal "uninitialized constant #{'A' * 120}::FOO", error.message
assert_match /\Auninitialized constant #{'A' * 120}::FOO$/, error.message
end
end