add tests for issue 3048
This commit is contained in:
12
tests/scryer/cli/issues/issue_3048.in/compare_get_assoc.pl
Normal file
12
tests/scryer/cli/issues/issue_3048.in/compare_get_assoc.pl
Normal file
@@ -0,0 +1,12 @@
|
||||
get_assoc(Key, t(K,V,_,L,R), Val) :-
|
||||
compare(Rel, Key, K),
|
||||
get_assoc(Rel, Key, V, L, R, Val).
|
||||
|
||||
get_assoc(=, _, Val, _, _, Val).
|
||||
get_assoc(>, Key, _, _, Tree, Val) :- get_assoc(Key, Tree, Val).
|
||||
|
||||
test :- get_assoc("1"-'0', t("0"-'2',_, _, t(_,_,_,t,t), t("1"-'0',_,_,t,t)), _).
|
||||
|
||||
?- test.
|
||||
false, unexpected.
|
||||
true.
|
||||
Reference in New Issue
Block a user