diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-02 01:54:08 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-02 02:20:58 +0200 |
commit | 007d7ac7ca6d52ba5e7a0ba7b2c582a04ddc50df (patch) | |
tree | 1a3615bd2fb103b7a0e9703fd869891613a57510 /tests | |
parent | f9724b93f6592d2f77fa9165038a0ba0db3da0c6 (diff) | |
download | php-git-007d7ac7ca6d52ba5e7a0ba7b2c582a04ddc50df.tar.gz |
Use DivisionByZeroError instead of exception for %/intdiv()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/operators/modulus_basiclong_64bit.phpt | 34 | ||||
-rw-r--r-- | tests/lang/operators/modulus_variationStr.phpt | 786 |
2 files changed, 410 insertions, 410 deletions
diff --git a/tests/lang/operators/modulus_basiclong_64bit.phpt b/tests/lang/operators/modulus_basiclong_64bit.phpt index 3fef77d85c..c2db77c120 100644 --- a/tests/lang/operators/modulus_basiclong_64bit.phpt +++ b/tests/lang/operators/modulus_basiclong_64bit.phpt @@ -27,7 +27,7 @@ foreach ($longVals as $longVal) { echo "--- testing: $longVal % $otherVal ---\n"; try { var_dump($longVal%$otherVal); - } catch (Exception $e) { + } catch (Throwable $e) { echo "Exception: " . $e->getMessage() . "\n"; } } @@ -38,7 +38,7 @@ foreach ($otherVals as $otherVal) { echo "--- testing: $otherVal % $longVal ---\n"; try { var_dump($otherVal%$longVal); - } catch (Exception $e) { + } catch (Throwable $e) { echo "Exception: " . $e->getMessage() . "\n"; } } @@ -48,7 +48,7 @@ foreach ($otherVals as $otherVal) { ===DONE=== --EXPECT-- --- testing: 9223372036854775807 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 9223372036854775807 % 1 --- int(0) --- testing: 9223372036854775807 % -1 --- @@ -66,7 +66,7 @@ int(1) --- testing: 9223372036854775807 % 9223372036854775807 --- int(0) --- testing: -9223372036854775808 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: -9223372036854775808 % 1 --- int(0) --- testing: -9223372036854775808 % -1 --- @@ -84,7 +84,7 @@ int(-2) --- testing: -9223372036854775808 % 9223372036854775807 --- int(-1) --- testing: 2147483647 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 2147483647 % 1 --- int(0) --- testing: 2147483647 % -1 --- @@ -102,7 +102,7 @@ int(0) --- testing: 2147483647 % 9223372036854775807 --- int(2147483647) --- testing: -2147483648 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: -2147483648 % 1 --- int(0) --- testing: -2147483648 % -1 --- @@ -120,7 +120,7 @@ int(-1) --- testing: -2147483648 % 9223372036854775807 --- int(-2147483648) --- testing: 9223372034707292160 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 9223372034707292160 % 1 --- int(0) --- testing: 9223372034707292160 % -1 --- @@ -138,7 +138,7 @@ int(1) --- testing: 9223372034707292160 % 9223372036854775807 --- int(9223372034707292160) --- testing: -9223372034707292160 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: -9223372034707292160 % 1 --- int(0) --- testing: -9223372034707292160 % -1 --- @@ -156,7 +156,7 @@ int(-1) --- testing: -9223372034707292160 % 9223372036854775807 --- int(-9223372034707292160) --- testing: 2147483648 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 2147483648 % 1 --- int(0) --- testing: 2147483648 % -1 --- @@ -174,7 +174,7 @@ int(1) --- testing: 2147483648 % 9223372036854775807 --- int(2147483648) --- testing: -2147483649 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: -2147483649 % 1 --- int(0) --- testing: -2147483649 % -1 --- @@ -192,7 +192,7 @@ int(-2) --- testing: -2147483649 % 9223372036854775807 --- int(-2147483649) --- testing: 4294967294 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 4294967294 % 1 --- int(0) --- testing: 4294967294 % -1 --- @@ -210,7 +210,7 @@ int(0) --- testing: 4294967294 % 9223372036854775807 --- int(4294967294) --- testing: 4294967295 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 4294967295 % 1 --- int(0) --- testing: 4294967295 % -1 --- @@ -228,7 +228,7 @@ int(1) --- testing: 4294967295 % 9223372036854775807 --- int(4294967295) --- testing: 4294967293 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 4294967293 % 1 --- int(0) --- testing: 4294967293 % -1 --- @@ -246,7 +246,7 @@ int(2147483646) --- testing: 4294967293 % 9223372036854775807 --- int(4294967293) --- testing: 9223372036854775806 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 9223372036854775806 % 1 --- int(0) --- testing: 9223372036854775806 % -1 --- @@ -264,7 +264,7 @@ int(0) --- testing: 9223372036854775806 % 9223372036854775807 --- int(9223372036854775806) --- testing: 9.2233720368548E+18 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: 9.2233720368548E+18 % 1 --- int(0) --- testing: 9.2233720368548E+18 % -1 --- @@ -282,7 +282,7 @@ int(-2) --- testing: 9.2233720368548E+18 % 9223372036854775807 --- int(-1) --- testing: -9223372036854775807 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: -9223372036854775807 % 1 --- int(0) --- testing: -9223372036854775807 % -1 --- @@ -300,7 +300,7 @@ int(-1) --- testing: -9223372036854775807 % 9223372036854775807 --- int(0) --- testing: -9.2233720368548E+18 % 0 --- -Exception: Division by zero +Exception: Modulo by zero --- testing: -9.2233720368548E+18 % 1 --- int(0) --- testing: -9.2233720368548E+18 % -1 --- diff --git a/tests/lang/operators/modulus_variationStr.phpt b/tests/lang/operators/modulus_variationStr.phpt index 24312b5611..49487000b3 100644 --- a/tests/lang/operators/modulus_variationStr.phpt +++ b/tests/lang/operators/modulus_variationStr.phpt @@ -15,7 +15,7 @@ foreach ($strVals as $strVal) { echo "--- testing: '$strVal' % '$otherVal' ---\n";
try {
var_dump($strVal%$otherVal);
- } catch (Exception $e) {
+ } catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
}
@@ -25,396 +25,396 @@ foreach ($strVals as $strVal) { ?>
===DONE===
--EXPECT--
---- testing: '0' % '0' --- -Exception: Division by zero ---- testing: '0' % '65' --- -int(0) ---- testing: '0' % '-44' --- -int(0) ---- testing: '0' % '1.2' --- -int(0) ---- testing: '0' % '-7.7' --- -int(0) ---- testing: '0' % 'abc' --- -Exception: Division by zero ---- testing: '0' % '123abc' --- -int(0) ---- testing: '0' % '123e5' --- -int(0) ---- testing: '0' % '123e5xyz' --- -int(0) ---- testing: '0' % ' 123abc' --- -int(0) ---- testing: '0' % '123 abc' --- -int(0) ---- testing: '0' % '123abc ' --- -int(0) ---- testing: '0' % '3.4a' --- -int(0) ---- testing: '0' % 'a5.9' --- -Exception: Division by zero ---- testing: '65' % '0' --- -Exception: Division by zero ---- testing: '65' % '65' --- -int(0) ---- testing: '65' % '-44' --- -int(21) ---- testing: '65' % '1.2' --- -int(0) ---- testing: '65' % '-7.7' --- -int(2) ---- testing: '65' % 'abc' --- -Exception: Division by zero ---- testing: '65' % '123abc' --- -int(65) ---- testing: '65' % '123e5' --- -int(65) ---- testing: '65' % '123e5xyz' --- -int(65) ---- testing: '65' % ' 123abc' --- -int(65) ---- testing: '65' % '123 abc' --- -int(65) ---- testing: '65' % '123abc ' --- -int(65) ---- testing: '65' % '3.4a' --- -int(2) ---- testing: '65' % 'a5.9' --- -Exception: Division by zero ---- testing: '-44' % '0' --- -Exception: Division by zero ---- testing: '-44' % '65' --- -int(-44) ---- testing: '-44' % '-44' --- -int(0) ---- testing: '-44' % '1.2' --- -int(0) ---- testing: '-44' % '-7.7' --- -int(-2) ---- testing: '-44' % 'abc' --- -Exception: Division by zero ---- testing: '-44' % '123abc' --- -int(-44) ---- testing: '-44' % '123e5' --- -int(-44) ---- testing: '-44' % '123e5xyz' --- -int(-44) ---- testing: '-44' % ' 123abc' --- -int(-44) ---- testing: '-44' % '123 abc' --- -int(-44) ---- testing: '-44' % '123abc ' --- -int(-44) ---- testing: '-44' % '3.4a' --- -int(-2) ---- testing: '-44' % 'a5.9' --- -Exception: Division by zero ---- testing: '1.2' % '0' --- -Exception: Division by zero ---- testing: '1.2' % '65' --- -int(1) ---- testing: '1.2' % '-44' --- -int(1) ---- testing: '1.2' % '1.2' --- -int(0) ---- testing: '1.2' % '-7.7' --- -int(1) ---- testing: '1.2' % 'abc' --- -Exception: Division by zero ---- testing: '1.2' % '123abc' --- -int(1) ---- testing: '1.2' % '123e5' --- -int(1) ---- testing: '1.2' % '123e5xyz' --- -int(1) ---- testing: '1.2' % ' 123abc' --- -int(1) ---- testing: '1.2' % '123 abc' --- -int(1) ---- testing: '1.2' % '123abc ' --- -int(1) ---- testing: '1.2' % '3.4a' --- -int(1) ---- testing: '1.2' % 'a5.9' --- -Exception: Division by zero ---- testing: '-7.7' % '0' --- -Exception: Division by zero ---- testing: '-7.7' % '65' --- -int(-7) ---- testing: '-7.7' % '-44' --- -int(-7) ---- testing: '-7.7' % '1.2' --- -int(0) ---- testing: '-7.7' % '-7.7' --- -int(0) ---- testing: '-7.7' % 'abc' --- -Exception: Division by zero ---- testing: '-7.7' % '123abc' --- -int(-7) ---- testing: '-7.7' % '123e5' --- -int(-7) ---- testing: '-7.7' % '123e5xyz' --- -int(-7) ---- testing: '-7.7' % ' 123abc' --- -int(-7) ---- testing: '-7.7' % '123 abc' --- -int(-7) ---- testing: '-7.7' % '123abc ' --- -int(-7) ---- testing: '-7.7' % '3.4a' --- -int(-1) ---- testing: '-7.7' % 'a5.9' --- -Exception: Division by zero ---- testing: 'abc' % '0' --- -Exception: Division by zero ---- testing: 'abc' % '65' --- -int(0) ---- testing: 'abc' % '-44' --- -int(0) ---- testing: 'abc' % '1.2' --- -int(0) ---- testing: 'abc' % '-7.7' --- -int(0) ---- testing: 'abc' % 'abc' --- -Exception: Division by zero ---- testing: 'abc' % '123abc' --- -int(0) ---- testing: 'abc' % '123e5' --- -int(0) ---- testing: 'abc' % '123e5xyz' --- -int(0) ---- testing: 'abc' % ' 123abc' --- -int(0) ---- testing: 'abc' % '123 abc' --- -int(0) ---- testing: 'abc' % '123abc ' --- -int(0) ---- testing: 'abc' % '3.4a' --- -int(0) ---- testing: 'abc' % 'a5.9' --- -Exception: Division by zero ---- testing: '123abc' % '0' --- -Exception: Division by zero ---- testing: '123abc' % '65' --- -int(58) ---- testing: '123abc' % '-44' --- -int(35) ---- testing: '123abc' % '1.2' --- -int(0) ---- testing: '123abc' % '-7.7' --- -int(4) ---- testing: '123abc' % 'abc' --- -Exception: Division by zero ---- testing: '123abc' % '123abc' --- -int(0) ---- testing: '123abc' % '123e5' --- -int(0) ---- testing: '123abc' % '123e5xyz' --- -int(0) ---- testing: '123abc' % ' 123abc' --- -int(0) ---- testing: '123abc' % '123 abc' --- -int(0) ---- testing: '123abc' % '123abc ' --- -int(0) ---- testing: '123abc' % '3.4a' --- -int(0) ---- testing: '123abc' % 'a5.9' --- -Exception: Division by zero ---- testing: '123e5' % '0' --- -Exception: Division by zero ---- testing: '123e5' % '65' --- -int(58) ---- testing: '123e5' % '-44' --- -int(35) ---- testing: '123e5' % '1.2' --- -int(0) ---- testing: '123e5' % '-7.7' --- -int(4) ---- testing: '123e5' % 'abc' --- -Exception: Division by zero ---- testing: '123e5' % '123abc' --- -int(0) ---- testing: '123e5' % '123e5' --- -int(0) ---- testing: '123e5' % '123e5xyz' --- -int(0) ---- testing: '123e5' % ' 123abc' --- -int(0) ---- testing: '123e5' % '123 abc' --- -int(0) ---- testing: '123e5' % '123abc ' --- -int(0) ---- testing: '123e5' % '3.4a' --- -int(0) ---- testing: '123e5' % 'a5.9' --- -Exception: Division by zero ---- testing: '123e5xyz' % '0' --- -Exception: Division by zero ---- testing: '123e5xyz' % '65' --- -int(58) ---- testing: '123e5xyz' % '-44' --- -int(35) ---- testing: '123e5xyz' % '1.2' --- -int(0) ---- testing: '123e5xyz' % '-7.7' --- -int(4) ---- testing: '123e5xyz' % 'abc' --- -Exception: Division by zero ---- testing: '123e5xyz' % '123abc' --- -int(0) ---- testing: '123e5xyz' % '123e5' --- -int(0) ---- testing: '123e5xyz' % '123e5xyz' --- -int(0) ---- testing: '123e5xyz' % ' 123abc' --- -int(0) ---- testing: '123e5xyz' % '123 abc' --- -int(0) ---- testing: '123e5xyz' % '123abc ' --- -int(0) ---- testing: '123e5xyz' % '3.4a' --- -int(0) ---- testing: '123e5xyz' % 'a5.9' --- -Exception: Division by zero ---- testing: ' 123abc' % '0' --- -Exception: Division by zero ---- testing: ' 123abc' % '65' --- -int(58) ---- testing: ' 123abc' % '-44' --- -int(35) ---- testing: ' 123abc' % '1.2' --- -int(0) ---- testing: ' 123abc' % '-7.7' --- -int(4) ---- testing: ' 123abc' % 'abc' --- -Exception: Division by zero ---- testing: ' 123abc' % '123abc' --- -int(0) ---- testing: ' 123abc' % '123e5' --- -int(0) ---- testing: ' 123abc' % '123e5xyz' --- -int(0) ---- testing: ' 123abc' % ' 123abc' --- -int(0) ---- testing: ' 123abc' % '123 abc' --- -int(0) ---- testing: ' 123abc' % '123abc ' --- -int(0) ---- testing: ' 123abc' % '3.4a' --- -int(0) ---- testing: ' 123abc' % 'a5.9' --- -Exception: Division by zero ---- testing: '123 abc' % '0' --- -Exception: Division by zero ---- testing: '123 abc' % '65' --- -int(58) ---- testing: '123 abc' % '-44' --- -int(35) ---- testing: '123 abc' % '1.2' --- -int(0) ---- testing: '123 abc' % '-7.7' --- -int(4) ---- testing: '123 abc' % 'abc' --- -Exception: Division by zero ---- testing: '123 abc' % '123abc' --- -int(0) ---- testing: '123 abc' % '123e5' --- -int(0) ---- testing: '123 abc' % '123e5xyz' --- -int(0) ---- testing: '123 abc' % ' 123abc' --- -int(0) ---- testing: '123 abc' % '123 abc' --- -int(0) ---- testing: '123 abc' % '123abc ' --- -int(0) ---- testing: '123 abc' % '3.4a' --- -int(0) ---- testing: '123 abc' % 'a5.9' --- -Exception: Division by zero ---- testing: '123abc ' % '0' --- -Exception: Division by zero ---- testing: '123abc ' % '65' --- -int(58) ---- testing: '123abc ' % '-44' --- -int(35) ---- testing: '123abc ' % '1.2' --- -int(0) ---- testing: '123abc ' % '-7.7' --- -int(4) ---- testing: '123abc ' % 'abc' --- -Exception: Division by zero ---- testing: '123abc ' % '123abc' --- -int(0) ---- testing: '123abc ' % '123e5' --- -int(0) ---- testing: '123abc ' % '123e5xyz' --- -int(0) ---- testing: '123abc ' % ' 123abc' --- -int(0) ---- testing: '123abc ' % '123 abc' --- -int(0) ---- testing: '123abc ' % '123abc ' --- -int(0) ---- testing: '123abc ' % '3.4a' --- -int(0) ---- testing: '123abc ' % 'a5.9' --- -Exception: Division by zero ---- testing: '3.4a' % '0' --- -Exception: Division by zero ---- testing: '3.4a' % '65' --- -int(3) ---- testing: '3.4a' % '-44' --- -int(3) ---- testing: '3.4a' % '1.2' --- -int(0) ---- testing: '3.4a' % '-7.7' --- -int(3) ---- testing: '3.4a' % 'abc' --- -Exception: Division by zero ---- testing: '3.4a' % '123abc' --- -int(3) ---- testing: '3.4a' % '123e5' --- -int(3) ---- testing: '3.4a' % '123e5xyz' --- -int(3) ---- testing: '3.4a' % ' 123abc' --- -int(3) ---- testing: '3.4a' % '123 abc' --- -int(3) ---- testing: '3.4a' % '123abc ' --- -int(3) ---- testing: '3.4a' % '3.4a' --- -int(0) ---- testing: '3.4a' % 'a5.9' --- -Exception: Division by zero ---- testing: 'a5.9' % '0' --- -Exception: Division by zero ---- testing: 'a5.9' % '65' --- -int(0) ---- testing: 'a5.9' % '-44' --- -int(0) ---- testing: 'a5.9' % '1.2' --- -int(0) ---- testing: 'a5.9' % '-7.7' --- -int(0) ---- testing: 'a5.9' % 'abc' --- -Exception: Division by zero ---- testing: 'a5.9' % '123abc' --- -int(0) ---- testing: 'a5.9' % '123e5' --- -int(0) ---- testing: 'a5.9' % '123e5xyz' --- -int(0) ---- testing: 'a5.9' % ' 123abc' --- -int(0) ---- testing: 'a5.9' % '123 abc' --- -int(0) ---- testing: 'a5.9' % '123abc ' --- -int(0) ---- testing: 'a5.9' % '3.4a' --- -int(0) ---- testing: 'a5.9' % 'a5.9' --- -Exception: Division by zero
+--- testing: '0' % '0' ---
+Exception: Modulo by zero
+--- testing: '0' % '65' ---
+int(0)
+--- testing: '0' % '-44' ---
+int(0)
+--- testing: '0' % '1.2' ---
+int(0)
+--- testing: '0' % '-7.7' ---
+int(0)
+--- testing: '0' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '0' % '123abc' ---
+int(0)
+--- testing: '0' % '123e5' ---
+int(0)
+--- testing: '0' % '123e5xyz' ---
+int(0)
+--- testing: '0' % ' 123abc' ---
+int(0)
+--- testing: '0' % '123 abc' ---
+int(0)
+--- testing: '0' % '123abc ' ---
+int(0)
+--- testing: '0' % '3.4a' ---
+int(0)
+--- testing: '0' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '65' % '0' ---
+Exception: Modulo by zero
+--- testing: '65' % '65' ---
+int(0)
+--- testing: '65' % '-44' ---
+int(21)
+--- testing: '65' % '1.2' ---
+int(0)
+--- testing: '65' % '-7.7' ---
+int(2)
+--- testing: '65' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '65' % '123abc' ---
+int(65)
+--- testing: '65' % '123e5' ---
+int(65)
+--- testing: '65' % '123e5xyz' ---
+int(65)
+--- testing: '65' % ' 123abc' ---
+int(65)
+--- testing: '65' % '123 abc' ---
+int(65)
+--- testing: '65' % '123abc ' ---
+int(65)
+--- testing: '65' % '3.4a' ---
+int(2)
+--- testing: '65' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '-44' % '0' ---
+Exception: Modulo by zero
+--- testing: '-44' % '65' ---
+int(-44)
+--- testing: '-44' % '-44' ---
+int(0)
+--- testing: '-44' % '1.2' ---
+int(0)
+--- testing: '-44' % '-7.7' ---
+int(-2)
+--- testing: '-44' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '-44' % '123abc' ---
+int(-44)
+--- testing: '-44' % '123e5' ---
+int(-44)
+--- testing: '-44' % '123e5xyz' ---
+int(-44)
+--- testing: '-44' % ' 123abc' ---
+int(-44)
+--- testing: '-44' % '123 abc' ---
+int(-44)
+--- testing: '-44' % '123abc ' ---
+int(-44)
+--- testing: '-44' % '3.4a' ---
+int(-2)
+--- testing: '-44' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '1.2' % '0' ---
+Exception: Modulo by zero
+--- testing: '1.2' % '65' ---
+int(1)
+--- testing: '1.2' % '-44' ---
+int(1)
+--- testing: '1.2' % '1.2' ---
+int(0)
+--- testing: '1.2' % '-7.7' ---
+int(1)
+--- testing: '1.2' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '1.2' % '123abc' ---
+int(1)
+--- testing: '1.2' % '123e5' ---
+int(1)
+--- testing: '1.2' % '123e5xyz' ---
+int(1)
+--- testing: '1.2' % ' 123abc' ---
+int(1)
+--- testing: '1.2' % '123 abc' ---
+int(1)
+--- testing: '1.2' % '123abc ' ---
+int(1)
+--- testing: '1.2' % '3.4a' ---
+int(1)
+--- testing: '1.2' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '-7.7' % '0' ---
+Exception: Modulo by zero
+--- testing: '-7.7' % '65' ---
+int(-7)
+--- testing: '-7.7' % '-44' ---
+int(-7)
+--- testing: '-7.7' % '1.2' ---
+int(0)
+--- testing: '-7.7' % '-7.7' ---
+int(0)
+--- testing: '-7.7' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '-7.7' % '123abc' ---
+int(-7)
+--- testing: '-7.7' % '123e5' ---
+int(-7)
+--- testing: '-7.7' % '123e5xyz' ---
+int(-7)
+--- testing: '-7.7' % ' 123abc' ---
+int(-7)
+--- testing: '-7.7' % '123 abc' ---
+int(-7)
+--- testing: '-7.7' % '123abc ' ---
+int(-7)
+--- testing: '-7.7' % '3.4a' ---
+int(-1)
+--- testing: '-7.7' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: 'abc' % '0' ---
+Exception: Modulo by zero
+--- testing: 'abc' % '65' ---
+int(0)
+--- testing: 'abc' % '-44' ---
+int(0)
+--- testing: 'abc' % '1.2' ---
+int(0)
+--- testing: 'abc' % '-7.7' ---
+int(0)
+--- testing: 'abc' % 'abc' ---
+Exception: Modulo by zero
+--- testing: 'abc' % '123abc' ---
+int(0)
+--- testing: 'abc' % '123e5' ---
+int(0)
+--- testing: 'abc' % '123e5xyz' ---
+int(0)
+--- testing: 'abc' % ' 123abc' ---
+int(0)
+--- testing: 'abc' % '123 abc' ---
+int(0)
+--- testing: 'abc' % '123abc ' ---
+int(0)
+--- testing: 'abc' % '3.4a' ---
+int(0)
+--- testing: 'abc' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '123abc' % '0' ---
+Exception: Modulo by zero
+--- testing: '123abc' % '65' ---
+int(58)
+--- testing: '123abc' % '-44' ---
+int(35)
+--- testing: '123abc' % '1.2' ---
+int(0)
+--- testing: '123abc' % '-7.7' ---
+int(4)
+--- testing: '123abc' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '123abc' % '123abc' ---
+int(0)
+--- testing: '123abc' % '123e5' ---
+int(0)
+--- testing: '123abc' % '123e5xyz' ---
+int(0)
+--- testing: '123abc' % ' 123abc' ---
+int(0)
+--- testing: '123abc' % '123 abc' ---
+int(0)
+--- testing: '123abc' % '123abc ' ---
+int(0)
+--- testing: '123abc' % '3.4a' ---
+int(0)
+--- testing: '123abc' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '123e5' % '0' ---
+Exception: Modulo by zero
+--- testing: '123e5' % '65' ---
+int(58)
+--- testing: '123e5' % '-44' ---
+int(35)
+--- testing: '123e5' % '1.2' ---
+int(0)
+--- testing: '123e5' % '-7.7' ---
+int(4)
+--- testing: '123e5' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '123e5' % '123abc' ---
+int(0)
+--- testing: '123e5' % '123e5' ---
+int(0)
+--- testing: '123e5' % '123e5xyz' ---
+int(0)
+--- testing: '123e5' % ' 123abc' ---
+int(0)
+--- testing: '123e5' % '123 abc' ---
+int(0)
+--- testing: '123e5' % '123abc ' ---
+int(0)
+--- testing: '123e5' % '3.4a' ---
+int(0)
+--- testing: '123e5' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '123e5xyz' % '0' ---
+Exception: Modulo by zero
+--- testing: '123e5xyz' % '65' ---
+int(58)
+--- testing: '123e5xyz' % '-44' ---
+int(35)
+--- testing: '123e5xyz' % '1.2' ---
+int(0)
+--- testing: '123e5xyz' % '-7.7' ---
+int(4)
+--- testing: '123e5xyz' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '123e5xyz' % '123abc' ---
+int(0)
+--- testing: '123e5xyz' % '123e5' ---
+int(0)
+--- testing: '123e5xyz' % '123e5xyz' ---
+int(0)
+--- testing: '123e5xyz' % ' 123abc' ---
+int(0)
+--- testing: '123e5xyz' % '123 abc' ---
+int(0)
+--- testing: '123e5xyz' % '123abc ' ---
+int(0)
+--- testing: '123e5xyz' % '3.4a' ---
+int(0)
+--- testing: '123e5xyz' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: ' 123abc' % '0' ---
+Exception: Modulo by zero
+--- testing: ' 123abc' % '65' ---
+int(58)
+--- testing: ' 123abc' % '-44' ---
+int(35)
+--- testing: ' 123abc' % '1.2' ---
+int(0)
+--- testing: ' 123abc' % '-7.7' ---
+int(4)
+--- testing: ' 123abc' % 'abc' ---
+Exception: Modulo by zero
+--- testing: ' 123abc' % '123abc' ---
+int(0)
+--- testing: ' 123abc' % '123e5' ---
+int(0)
+--- testing: ' 123abc' % '123e5xyz' ---
+int(0)
+--- testing: ' 123abc' % ' 123abc' ---
+int(0)
+--- testing: ' 123abc' % '123 abc' ---
+int(0)
+--- testing: ' 123abc' % '123abc ' ---
+int(0)
+--- testing: ' 123abc' % '3.4a' ---
+int(0)
+--- testing: ' 123abc' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '123 abc' % '0' ---
+Exception: Modulo by zero
+--- testing: '123 abc' % '65' ---
+int(58)
+--- testing: '123 abc' % '-44' ---
+int(35)
+--- testing: '123 abc' % '1.2' ---
+int(0)
+--- testing: '123 abc' % '-7.7' ---
+int(4)
+--- testing: '123 abc' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '123 abc' % '123abc' ---
+int(0)
+--- testing: '123 abc' % '123e5' ---
+int(0)
+--- testing: '123 abc' % '123e5xyz' ---
+int(0)
+--- testing: '123 abc' % ' 123abc' ---
+int(0)
+--- testing: '123 abc' % '123 abc' ---
+int(0)
+--- testing: '123 abc' % '123abc ' ---
+int(0)
+--- testing: '123 abc' % '3.4a' ---
+int(0)
+--- testing: '123 abc' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '123abc ' % '0' ---
+Exception: Modulo by zero
+--- testing: '123abc ' % '65' ---
+int(58)
+--- testing: '123abc ' % '-44' ---
+int(35)
+--- testing: '123abc ' % '1.2' ---
+int(0)
+--- testing: '123abc ' % '-7.7' ---
+int(4)
+--- testing: '123abc ' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '123abc ' % '123abc' ---
+int(0)
+--- testing: '123abc ' % '123e5' ---
+int(0)
+--- testing: '123abc ' % '123e5xyz' ---
+int(0)
+--- testing: '123abc ' % ' 123abc' ---
+int(0)
+--- testing: '123abc ' % '123 abc' ---
+int(0)
+--- testing: '123abc ' % '123abc ' ---
+int(0)
+--- testing: '123abc ' % '3.4a' ---
+int(0)
+--- testing: '123abc ' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: '3.4a' % '0' ---
+Exception: Modulo by zero
+--- testing: '3.4a' % '65' ---
+int(3)
+--- testing: '3.4a' % '-44' ---
+int(3)
+--- testing: '3.4a' % '1.2' ---
+int(0)
+--- testing: '3.4a' % '-7.7' ---
+int(3)
+--- testing: '3.4a' % 'abc' ---
+Exception: Modulo by zero
+--- testing: '3.4a' % '123abc' ---
+int(3)
+--- testing: '3.4a' % '123e5' ---
+int(3)
+--- testing: '3.4a' % '123e5xyz' ---
+int(3)
+--- testing: '3.4a' % ' 123abc' ---
+int(3)
+--- testing: '3.4a' % '123 abc' ---
+int(3)
+--- testing: '3.4a' % '123abc ' ---
+int(3)
+--- testing: '3.4a' % '3.4a' ---
+int(0)
+--- testing: '3.4a' % 'a5.9' ---
+Exception: Modulo by zero
+--- testing: 'a5.9' % '0' ---
+Exception: Modulo by zero
+--- testing: 'a5.9' % '65' ---
+int(0)
+--- testing: 'a5.9' % '-44' ---
+int(0)
+--- testing: 'a5.9' % '1.2' ---
+int(0)
+--- testing: 'a5.9' % '-7.7' ---
+int(0)
+--- testing: 'a5.9' % 'abc' ---
+Exception: Modulo by zero
+--- testing: 'a5.9' % '123abc' ---
+int(0)
+--- testing: 'a5.9' % '123e5' ---
+int(0)
+--- testing: 'a5.9' % '123e5xyz' ---
+int(0)
+--- testing: 'a5.9' % ' 123abc' ---
+int(0)
+--- testing: 'a5.9' % '123 abc' ---
+int(0)
+--- testing: 'a5.9' % '123abc ' ---
+int(0)
+--- testing: 'a5.9' % '3.4a' ---
+int(0)
+--- testing: 'a5.9' % 'a5.9' ---
+Exception: Modulo by zero
===DONE===
|