output debug for failed parses

This commit is contained in:
Torsten Ruger 2014-05-08 18:38:10 +03:00
parent 5436e6bfc9
commit 4c585e415b

View File

@ -1,5 +1,5 @@
require_relative "../helper"
require "parslet/convenience"
# Included in parser test will create tests methods
module ParserHelper
@ -16,7 +16,7 @@ module ParserHelper
# check that @string_input parses correctly to @parse_output
def check_parse
is = @parser.parse(@string_input)
is = @parser.parse_with_debug(@string_input)
#puts is.inspect
assert_equal @parse_output , is
end