cover trailing -- and os:argv([]) in os_argv test

This commit is contained in:
Skgland
2024-01-02 20:23:53 +01:00
committed by Bennet Bleßmann
parent 91df533834
commit 38f25af47d
3 changed files with 4 additions and 2 deletions

View File

@@ -2,3 +2,4 @@ os:argv(V).
os:argv(["test1"|_]).
os:argv(["--"|_]).
os:argv(["test2"|_]).
os:argv([]).

View File

@@ -1,4 +1,5 @@
V = ["test1","--","test2"].
V = ["test1","--","test2","--"].
true.
false.
false.
false.

View File

@@ -1,2 +1,2 @@
# https://github.com/mthom/scryer-prolog/pull/2263#issuecomment-1874400820
args = ["-f", "--no-add-history", "--", "test1", "--", "test2"]
args = ["-f", "--no-add-history", "--", "test1", "--", "test2", "--"]