From 6d0901cb4da43d9316762445f764904a6b4fe1cf Mon Sep 17 00:00:00 2001 From: Stefan Plantikow Date: Thu, 8 Dec 2011 19:30:57 +0100 Subject: std: export math_f* as math::f* submods and use tailcalls in std::math --- src/test/stdtest/math.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test/stdtest') 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] -- cgit 1.4.1-3-g733a5