about summary refs log tree commit diff
path: root/src/libcoretest/num/flt2dec/strategy
diff options
context:
space:
mode:
authorKang Seonghoon <public+git@mearie.org>2015-04-21 20:32:25 +0900
committerKang Seonghoon <public+git@mearie.org>2015-05-06 14:22:26 +0900
commit97ea7c14bae496d6444752be570dd41cf1a507bd (patch)
tree0a0b52c4568cf5ccd53faa2f8662cc6c37b2adc4 /src/libcoretest/num/flt2dec/strategy
parent8a195f075417ad78084ef2e1c5e294ac35d6cafa (diff)
downloadrust-97ea7c14bae496d6444752be570dd41cf1a507bd.tar.gz
rust-97ea7c14bae496d6444752be570dd41cf1a507bd.zip
core: fixed a slight bug.
The bug involves the incorrect logic for `core::num::flt2dec::decoder`.
This makes some numbers in the form of 2^n missing one final digits,
which breaks the bijectivity criterion. The regression tests have been
added, and f32 exhaustive test is rerun to get the updated result.
Diffstat (limited to 'src/libcoretest/num/flt2dec/strategy')
-rw-r--r--src/libcoretest/num/flt2dec/strategy/grisu.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoretest/num/flt2dec/strategy/grisu.rs b/src/libcoretest/num/flt2dec/strategy/grisu.rs
index 3d798c8726c..e5b8a9dcc38 100644
--- a/src/libcoretest/num/flt2dec/strategy/grisu.rs
+++ b/src/libcoretest/num/flt2dec/strategy/grisu.rs
@@ -60,7 +60,7 @@ fn shortest_f32_exhaustive_equivalence_test() {
     //
     // this reports the progress and the number of f32 values returned `None`.
     // with `--nocapture` (and plenty of time and appropriate rustc flags), this should print:
-    // `done, ignored=17643160 passed=2121451879 failed=0`.
+    // `done, ignored=17643158 passed=2121451881 failed=0`.
 
     use core::num::flt2dec::strategy::dragon::format_shortest as fallback;
     f32_exhaustive_equivalence_test(format_shortest_opt, fallback, MAX_SIG_DIGITS);