mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 0.1 tests/general/arithmetic.exp: Add a test of the new modes of int__xor.
16 lines
179 B
Plaintext
16 lines
179 B
Plaintext
X: 3
|
|
Y: 4
|
|
X + Y: 7
|
|
X * Y: 12
|
|
X - Y: -1
|
|
X / Y: 0
|
|
X mod Y: 3
|
|
X << Y: 48
|
|
X >> Y: 0
|
|
X /\ Y: 0
|
|
X \/ Y: 7
|
|
X `xor` Y: 7
|
|
Z such that X = Z `xor` Y: 7
|
|
Z such that Y = X `xor` Z: 7
|
|
\ X: -4
|