From 0b679e2f69d9286d4b5de9612d12972fa52afbd0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 31 Oct 2019 01:09:18 +0900 Subject: [PATCH] Show diffs --- test/case.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/case.rb b/test/case.rb index f4240bfd..d917f3a4 100644 --- a/test/case.rb +++ b/test/case.rb @@ -90,8 +90,7 @@ def assert_output_unchanged(asset) 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)