Make them tests work now

This commit is contained in:
Dale Weiler 2013-06-15 11:05:25 +00:00
parent 5694c77d16
commit a27b7ee6a5
2 changed files with 15 additions and 0 deletions

View file

@ -9,4 +9,16 @@ void main() {
print(ftos(z), "\n");
print(ftos(c), "\n");
// commutative?
if (x ^ y == y ^ x)
print("commutative\n");
// assocative?
if (x ^ (y ^ z) == (x ^ y) ^ z)
print("assocative\n");
// elements are their own inverse?
if (x ^ 0 == x)
print("inverse\n");
}

View file

@ -5,3 +5,6 @@ C: -std=gmqcc
E: $null
M: 6
M: 8
M: commutative
M: assocative
M: inverse