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

[ruby/racc] Show diffs

https://github.com/ruby/racc/commit/0b679e2f69
This commit is contained in:
Nobuyoshi Nakada 2019-10-31 01:09:18 +09:00 committed by Hiroshi SHIBATA
parent 104fb83ccd
commit 1d9f2a4504
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -90,8 +90,7 @@ module Racc
actual = File.read("#{@TAB_DIR}/#{file}") actual = File.read("#{@TAB_DIR}/#{file}")
result = (strip_version(expected) == strip_version(actual)) result = (strip_version(expected) == strip_version(actual))
assert(result, "Output of test/assets/#{file}.y differed from " \ assert(result, proc {`diff -u #{REGRESS_DIR}/#{file} #{@TAB_DIR}/#{file}`})
"expectation. Try compiling it and diff with test/regress/#{file}.")
end end
def racc(*arg, **opt) def racc(*arg, **opt)