Added *vec1 tests
This commit is contained in:
@@ -36,6 +36,46 @@ static int test_operators()
|
||||
Error += F == genType(1) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
genType const A(3);
|
||||
genType const B(2);
|
||||
|
||||
genType const C = A % B;
|
||||
Error += C == genType(1) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
genType const A(1);
|
||||
genType const B(1);
|
||||
genType const C(0);
|
||||
|
||||
genType const I = A & B;
|
||||
Error += I == genType(1) ? 0 : 1;
|
||||
genType const D = A & C;
|
||||
Error += D == genType(0) ? 0 : 1;
|
||||
|
||||
genType const E = A | B;
|
||||
Error += E == genType(1) ? 0 : 1;
|
||||
genType const F = A | C;
|
||||
Error += F == genType(1) ? 0 : 1;
|
||||
|
||||
genType const G = A ^ B;
|
||||
Error += G == genType(0) ? 0 : 1;
|
||||
genType const H = A ^ C;
|
||||
Error += H == genType(1) ? 0 : 1;
|
||||
}
|
||||
|
||||
{
|
||||
genType const A(0);
|
||||
genType const B(1);
|
||||
genType const C(2);
|
||||
|
||||
genType const D = B << B;
|
||||
Error += D == genType(2) ? 0 : 1;
|
||||
genType const E = C >> B;
|
||||
Error += E == genType(1) ? 0 : 1;
|
||||
}
|
||||
|
||||
return Error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user