tests on infinite terms.
This commit is contained in:
parent
93bb39d5f7
commit
bfe5fc2f49
7
regression/cyclics.yap
Normal file
7
regression/cyclics.yap
Normal file
@ -0,0 +1,7 @@
|
||||
:- X = [X], copy_term(X,Y), writeln(X), writeln(Y), fail.
|
||||
:- X = [_|X], copy_term(X,Y), writeln(X), writeln(Y), fail.
|
||||
:- X= f(X), copy_term(X,Y), writeln(X), writeln(Y), fail.
|
||||
:- X= f(X,X), copy_term(X,Y), writeln(X), writeln(Y), fail.
|
||||
:- X= f(_,X), copy_term(X,Y), writeln(X), writeln(Y), fail.
|
||||
:- X= f(X,[X,X]), copy_term(X,Y), writeln(X), writeln(Y), fail.
|
||||
:- X= f(X,[X,g(X)]), copy_term(X,Y), writeln(X), writeln(Y), fail.
|
Reference in New Issue
Block a user