summaryrefslogtreecommitdiff
path: root/test/racc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-31 01:09:18 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-05-20 17:49:15 +0900
commit1d9f2a450410e57c5d7fbfe078872a95eb3ec82a (patch)
treee2bf94d438dedb96ca46d73f49621738cadb484b /test/racc
parent104fb83ccd23b132e88d259a4f70c46649dad608 (diff)
downloadruby-1d9f2a450410e57c5d7fbfe078872a95eb3ec82a.tar.gz
[ruby/racc] Show diffs
https://github.com/ruby/racc/commit/0b679e2f69
Diffstat (limited to 'test/racc')
-rw-r--r--test/racc/case.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/racc/case.rb b/test/racc/case.rb
index f4240bfd21..d917f3a4e4 100644
--- a/test/racc/case.rb
+++ b/test/racc/case.rb
@@ -90,8 +90,7 @@ module Racc
actual = File.read("#{@TAB_DIR}/#{file}")
result = (strip_version(expected) == strip_version(actual))
- assert(result, "Output of test/assets/#{file}.y differed from " \
- "expectation. Try compiling it and diff with test/regress/#{file}.")
+ assert(result, proc {`diff -u #{REGRESS_DIR}/#{file} #{@TAB_DIR}/#{file}`})
end
def racc(*arg, **opt)