summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorStefan Plantikow <stefan.plantikow@googlemail.com>2011-12-08 19:30:57 +0100
committerGraydon Hoare <graydon@mozilla.com>2011-12-14 14:54:16 -0800
commit6d0901cb4da43d9316762445f764904a6b4fe1cf (patch)
tree0f6a3572f698be0fe58d030ad0b54f5d56622c61 /src/test
parent6cdb69cccbb9a86487fc0fd5d10edb01ce9479a4 (diff)
downloadrust-6d0901cb4da43d9316762445f764904a6b4fe1cf.tar.gz
rust-6d0901cb4da43d9316762445f764904a6b4fe1cf.zip
std: export math_f* as math::f* submods and use tailcalls in std::math
Diffstat (limited to 'src/test')
-rw-r--r--src/test/stdtest/math.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/stdtest/math.rs b/src/test/stdtest/math.rs
index bff63340cf5..9d5cf5d0c3a 100644
--- a/src/test/stdtest/math.rs
+++ b/src/test/stdtest/math.rs
@@ -160,8 +160,11 @@ fn test_exp_and_mod() {
 
     let d2: float = 1.0;
     assert modf(float::infinity, d2) == 0.0;
+    assert d2 == float::infinity;
     assert modf(float::neg_infinity, d2) == -0.0;
+    assert d2 == float::neg_infinity;
     assert float::isNaN(modf(float::NaN, d2));
+    assert float::isNaN(d2);
 }
 
 #[test]