mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 02:13:54 +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.
14 lines
320 B
Plaintext
14 lines
320 B
Plaintext
from_int(-2147483648) = <<out-of-range>>
|
|
from_int(-128) = <<out-of-range>>
|
|
from_int(-1) = <<out-of-range>>
|
|
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(255) = 255
|
|
from_int(256) = <<out-of-range>>
|
|
from_int(2147483647) = <<out-of-range>>
|