CLose to 100% tests working, but slooooooow

This commit is contained in:
2024-08-13 20:45:46 -03:00
parent d2b61fdc6c
commit 32816eb207
3 changed files with 10 additions and 5 deletions

View File

@@ -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) ||