]> Repositorios git - scryer-prolog.git/commitdiff
add regression test for discussion 3359
authorSkgland <[email protected]>
Wed, 3 Jun 2026 19:09:39 +0000 (21:09 +0200)
committerSkgland <[email protected]>
Wed, 3 Jun 2026 20:05:20 +0000 (22:05 +0200)
tests-pl/discussion3359.pl [new file with mode: 0644]
tests/scryer/issues.rs

diff --git a/tests-pl/discussion3359.pl b/tests-pl/discussion3359.pl
new file mode 100644 (file)
index 0000000..c9402a6
--- /dev/null
@@ -0,0 +1,11 @@
+:- use_module(library(clpz)).
+:- use_module(library(tabling)).
+
+:- table expr//0.
+
+expr --> "1".
+expr --> expr, "+", expr.
+
+run :- phrase(expr, "1+1+1+1+1").
+
+:- initialization(run).
\ No newline at end of file
index 1cc9a260b502e5f4b429be1064a2527f8be37511..71b256f053e93b1e4c881a1087a9c6bc3eb84896 100644 (file)
@@ -173,3 +173,9 @@ fn http_open_hanging() {
             "received response with status code:200\nreceived response with status code:200\nreceived response with status code:200\nreceived response with status code:200\nreceived response with status code:200\n"
     );
 }
+
+#[test]
+#[cfg_attr(miri, ignore = "it takes too long to run")]
+fn discussion3359() {
+    load_module_test("tests-pl/discussion3359.pl", "");
+}