Skip to content

Commit 3499819

Browse files
committed
more lenient tests
1 parent e33f58e commit 3499819

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/errparse.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@
9999
all(comp(x[i], y[i]) for i = 1:length(x))
100100
end
101101

102-
function check_reparse(s0, n = 1000)
102+
function check_reparse(s0, n = length(s0)÷100)
103103
for _ in 1:n
104104
x0 = CSTParser.parse(s0, true)
105+
CSTParser.has_error(x0) && return
105106
ts = collect(tokenize(s0))[1:end-1]
106107
length(ts) < 2 && return
107108
deleteat!(ts, rand(1:length(ts)))

0 commit comments

Comments
 (0)