aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/floatlits.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/run-pass/floatlits.rs b/src/test/run-pass/floatlits.rs
new file mode 100644
index 00000000..db82b486
--- /dev/null
+++ b/src/test/run-pass/floatlits.rs
@@ -0,0 +1,8 @@
+fn main() {
+ auto f = 4.999999999999;
+ check (f > 4.90);
+ check (f < 5.0);
+ auto g = 4.90000000001e-10;
+ check(g > 5e-11);
+ check(g < 5e-9);
+} \ No newline at end of file