aboutsummaryrefslogtreecommitdiff
path: root/test-suite/primitive/float/syntax.v
diff options
context:
space:
mode:
authorPierre Roux2018-10-20 23:43:07 +0200
committerPierre Roux2019-11-01 10:20:55 +0100
commitfdfcadc111fb5618a8e4a769c50607dc920b7dec (patch)
tree811b37c20ab97e1c4bd3c909db7c9c87e31931a0 /test-suite/primitive/float/syntax.v
parent6133877fc097412233a60740fdf94374abb79559 (diff)
Parsing primitive float constants
Diffstat (limited to 'test-suite/primitive/float/syntax.v')
-rw-r--r--test-suite/primitive/float/syntax.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/primitive/float/syntax.v b/test-suite/primitive/float/syntax.v
new file mode 100644
index 0000000000..cc0bbcf628
--- /dev/null
+++ b/test-suite/primitive/float/syntax.v
@@ -0,0 +1,13 @@
+Require Import Floats.
+
+Open Scope float_scope.
+
+Definition two := Eval compute in one + one.
+Definition half := Eval compute in one / two.
+
+Check (eq_refl : 1.5 = one + half).
+Check (eq_refl : 15e-1 = one + half).
+Check (eq_refl : 150e-2 = one + half).
+Check (eq_refl : 0.15e+1 = one + half).
+Check (eq_refl : 0.15e1 = one + half).
+Check (eq_refl : 0.0015e3 = one + half).