More sensitive test for recursion error
If eat_char is moved before the recursion check, the original test will
continue to pass but the new test will catch it.
diff --git a/tests/test.rs b/tests/test.rs
index ac8d9e1..7dd6abf 100644
--- a/tests/test.rs
+++ b/tests/test.rs
@@ -1760,7 +1760,7 @@
.collect();
let _: Value = from_str(&brackets).unwrap();
- let brackets: String = iter::repeat('[').take(128).collect();
+ let brackets: String = iter::repeat('[').take(129).collect();
test_parse_err::<Value>(&[(&brackets, "recursion limit exceeded at line 1 column 128")]);
}