Files
mercury/tests/hard_coded/write.exp3
Julien Fischer a8e5406750 Fix a test case failure in the C# grade.
Avoid some warnings during runtests.

tests/hard_coded/write.exp3:
	Update this expected output.

tests/hard_coded/hash_bug.m:
	Do not call an obsolete function.

tests/hard_coded/Mercury.options:
	Do not warn about unresolved polymorphism in a test.
2014-07-04 10:47:34 +10:00

50 lines
671 B
Plaintext

var("X") + int(3) * var("X^2") ; (type)
{ type }
{ ':-' }
':-'
{ blah }
blah ; (type), (type) * blah ; (type)
((blah ; blah), blah) * blah ; blah
(type) * blah ; (type)
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>>'
TESTING OTHER TYPES
var(1)
var_supply(0)
var_supply(1)
empty
qwerty(4)
array([1, 2, 3, 4])
version_array([1, 2, 3, 4])