summaryrefslogtreecommitdiffhomepage
path: root/tests/01_arithmetic/01_division
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2021-03-19 16:54:55 +0100
committerJo-Philipp Wich <jo@mein.io>2021-04-23 00:42:30 +0200
commit2b59097c3f61fa901e91ac4cea48940760439578 (patch)
tree958d739a78f959dfcd55b3d76e6e970ca53fa1c6 /tests/01_arithmetic/01_division
parent80393611fb6634abcc0da1dee2da7c4418dbde8d (diff)
tests: create custom tests from current tests cases
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'tests/01_arithmetic/01_division')
-rw-r--r--tests/01_arithmetic/01_division53
1 files changed, 0 insertions, 53 deletions
diff --git a/tests/01_arithmetic/01_division b/tests/01_arithmetic/01_division
deleted file mode 100644
index d4a2adb..0000000
--- a/tests/01_arithmetic/01_division
+++ /dev/null
@@ -1,53 +0,0 @@
-While arithmetic divisions generally follow the value conversion rules
-outlined in the "00_value_conversion" test case, a number of additional
-constraints apply.
-
--- Expect stdout --
-Division by zero yields Infinity:
-1 / 0 = Infinity
-
-Division by Infinity yields zero:
-1 / Infinity = 0
-
-Dividing Infinity yields Infinity:
-Infinity / 1 = Infinity
-
-Dividing Infinity by Infinity yields NaN:
-Infinity / Infinity = NaN
-
-If either operand is NaN, the result is NaN:
-1 / NaN = NaN
-NaN / 1 = NaN
-
-If both operands are integers, integer division is performed:
-10 / 3 = 3
-
-If either operand is a double, double division is performed:
-10.0 / 3 = 3.33333
-10 / 3.0 = 3.33333
--- End --
-
--- Testcase --
-Division by zero yields Infinity:
-1 / 0 = {{ 1 / 0 }}
-
-Division by Infinity yields zero:
-1 / Infinity = {{ 1 / Infinity }}
-
-Dividing Infinity yields Infinity:
-Infinity / 1 = {{ Infinity / 1 }}
-
-Dividing Infinity by Infinity yields NaN:
-Infinity / Infinity = {{ Infinity / Infinity }}
-
-If either operand is NaN, the result is NaN:
-1 / NaN = {{ 1 / NaN }}
-NaN / 1 = {{ NaN / 1 }}
-
-If both operands are integers, integer division is performed:
-10 / 3 = {{ 10 / 3 }}
-
-If either operand is a double, double division is performed:
-10.0 / 3 = {{ 10.0 / 3 }}
-10 / 3.0 = {{ 10 / 3.0 }}
--- End --