mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
tests/hard_coded/from_int_int{8,16}.{m,exp}:
tests/hard_coded/from_int_uint{8,16}.{m,exp}:
As above.
tests/hard_coded/Mmakefile:
Add the new tests.
15 lines
344 B
Plaintext
15 lines
344 B
Plaintext
from_int(-2147483648) = <<out-of-range>>
|
|
from_int(-32769) = <<out-of-range>>
|
|
from_int(-32768) = -32768
|
|
from_int(-128) = -128
|
|
from_int(0) = 0
|
|
from_int(1) = 1
|
|
from_int(2) = 2
|
|
from_int(8) = 8
|
|
from_int(10) = 10
|
|
from_int(16) = 16
|
|
from_int(127) = 127
|
|
from_int(32767) = 32767
|
|
from_int(32768) = <<out-of-range>>
|
|
from_int(2147483647) = <<out-of-range>>
|