mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Test pre-release of 2.12.8.1
This commit is contained in:
@@ -356,8 +356,17 @@ define test_arithmetic()
|
||||
vrfy(-16^-2 == -1/256, '447: -16^-2 == -1/256');
|
||||
vrfy(-7^2 == -49, '448: -7^2 == -49');
|
||||
vrfy(-3! == -6, '449: -3! == -6');
|
||||
vrfy(0^(0-0) == 1, '450: 0^(0-0) == 1');
|
||||
vrfy(0^(2-2) == 1, '451: 0^(2-2) == 1');
|
||||
vrfy(2^0 == 1, '452: 2^0 == 1');
|
||||
vrfy(2^(0-0) == 1, '453: 2^(0-0) == 1');
|
||||
vrfy(2^(2-2) == 1, '454: 2^(2-2) == 1');
|
||||
vrfy((2^23209-1)^0 == 1, '455: (2^23209-1)^0 == 1');
|
||||
vrfy((2^23209-1)^(0-0) == 1, '456: (2^23209-1)^(0-0) == 1');
|
||||
vrfy((2^23209-1)^(2-2) == 1, '457: (2^23209-1)^(2-2) == 1');
|
||||
vrfy((2^23209-1)^((2^23209-1)-(2^23209-1)) == 1, '458: (2^23209-1)^((2^23209-1)-(2^23209-1)) == 1');
|
||||
|
||||
print '450: Ending test_arithmetic';
|
||||
print '459: Ending test_arithmetic';
|
||||
}
|
||||
print '009: parsed test_arithmetic()';
|
||||
|
||||
|
Reference in New Issue
Block a user