commit | 7bd66b6c465395634479807d17b5d1cf9f5ac6d6 | [log] [tgz] |
---|---|---|
author | kcwu <kcwu@chromium.org> | Fri Oct 14 22:37:28 2016 |
committer | Commit bot <commit-bot@chromium.org> | Fri Oct 14 22:41:30 2016 |
tree | 82d3ef2f8cf3f6e6ac8e3e18ced0d06e736f12e7 | |
parent | 8acdb96001a358318b3ee6b3447bf91441dd9098 [diff] |
Add boundary test case to StringToDouble The max presentable double is HUGE_VAL=(2^53-1)*(2^971). And (2^53)*(2^971) is considered overflow. Added cases above and below (2^53-0.5)*(2^971). The value above is overflow and the value below is not. std::strtod on linux doesn't pass the above case (it returns inf correctly but doesn't set errno=ERANGE). BUG=593512 Review-Url: https://codereview.chromium.org/2415353002 Cr-Commit-Position: refs/heads/master@{#425496}