mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-08-02 13:59:51 +00:00
CLose to 100% tests working, but slooooooow
This commit is contained in:
@@ -42,6 +42,10 @@ known_bad = {
|
||||
"#{__DIR__}/tests/mcfunction/selectors.txt",
|
||||
"#{__DIR__}/tests/php/anonymous_class.txt",
|
||||
"#{__DIR__}/tests/html/javascript_unclosed.txt",
|
||||
# BAD FOR ONIGMO
|
||||
"#{__DIR__}/tests/json/test_backtracking.txt",
|
||||
|
||||
|
||||
}
|
||||
|
||||
# Tests that fail because of a limitation in PCRE2
|
||||
@@ -57,6 +61,7 @@ describe Tartrazine do
|
||||
end
|
||||
else
|
||||
it "parses #{testcase}".split("/")[-2...].join("/") do
|
||||
p! testcase
|
||||
text = File.read(testcase).split("---input---\n").last.split("---tokens---").first
|
||||
lexer_name = File.basename(File.dirname(testcase)).downcase
|
||||
unless failing_lexers.includes?(lexer_name) ||
|
||||
|
Reference in New Issue
Block a user