output debug for failed parses
This commit is contained in:
parent
5436e6bfc9
commit
4c585e415b
@ -1,5 +1,5 @@
|
|||||||
require_relative "../helper"
|
require_relative "../helper"
|
||||||
|
require "parslet/convenience"
|
||||||
# Included in parser test will create tests methods
|
# Included in parser test will create tests methods
|
||||||
module ParserHelper
|
module ParserHelper
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ module ParserHelper
|
|||||||
|
|
||||||
# check that @string_input parses correctly to @parse_output
|
# check that @string_input parses correctly to @parse_output
|
||||||
def check_parse
|
def check_parse
|
||||||
is = @parser.parse(@string_input)
|
is = @parser.parse_with_debug(@string_input)
|
||||||
#puts is.inspect
|
#puts is.inspect
|
||||||
assert_equal @parse_output , is
|
assert_equal @parse_output , is
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user