cover both args ending in -- and args not ending in -- for os:argv/1 test
This commit is contained in:
0
tests/scryer/cli/issues/os_argv-no-final--.stderr
Normal file
0
tests/scryer/cli/issues/os_argv-no-final--.stderr
Normal file
5
tests/scryer/cli/issues/os_argv-no-final--.stdin
Normal file
5
tests/scryer/cli/issues/os_argv-no-final--.stdin
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
os:argv(V).
|
||||||
|
os:argv(["test1"|_]).
|
||||||
|
os:argv(["--"|_]).
|
||||||
|
os:argv(["test2"|_]).
|
||||||
|
os:argv([]).
|
||||||
5
tests/scryer/cli/issues/os_argv-no-final--.stdout
Normal file
5
tests/scryer/cli/issues/os_argv-no-final--.stdout
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
V = ["test1","--","test2"].
|
||||||
|
true.
|
||||||
|
false.
|
||||||
|
false.
|
||||||
|
false.
|
||||||
2
tests/scryer/cli/issues/os_argv-no-final--.toml
Normal file
2
tests/scryer/cli/issues/os_argv-no-final--.toml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# https://github.com/mthom/scryer-prolog/pull/2263#issuecomment-1874400820
|
||||||
|
args = ["-f", "--no-add-history", "--", "test1", "--", "test2"]
|
||||||
Reference in New Issue
Block a user