mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
tests/hard_coded/Mmakefile:
Filter the Java and C# stack traces from the output of the no_fully_strict
test case.
tests/hard_coded/lexer_zero.exp3:
tests/hard_coded/write_reg1.exp5:
Alternative expected outputs due to difference in how floats are
printed.
41 lines
470 B
Plaintext
41 lines
470 B
Plaintext
TESTING DISCRIMINATED UNIONS
|
|
one
|
|
two
|
|
three
|
|
apple([9, 5, 1])
|
|
banana([three, one, two])
|
|
zop(3.3, 2.03)
|
|
zip(3, 2)
|
|
zap(3, -2.111)
|
|
wombat
|
|
foo
|
|
|
|
TESTING POLYMORPHISM
|
|
poly_one([2399.3])
|
|
poly_two(3)
|
|
poly_three(3.33, 4, poly_one(9.11))
|
|
|
|
TESTING BUILTINS
|
|
""
|
|
"Hello, world\n"
|
|
"Foo%sFoo"
|
|
"\""
|
|
'a'
|
|
'&'
|
|
3.14159
|
|
1.128324983E-21
|
|
2.23954899E+23
|
|
-65
|
|
4
|
|
univ_cons(["hi! I\'m a univ!"])
|
|
'<<predicate>>'
|
|
'<<predicate>>'
|
|
|
|
TESTING OTHER TYPES
|
|
var(1)
|
|
var_supply(0)
|
|
var_supply(1)
|
|
empty
|
|
qwerty(4)
|
|
|