summaryrefslogtreecommitdiff
path: root/src/mongo/base/parse_number_test.cpp
AgeCommit message (Collapse)Author
2023-06-15SERVER-77042 automated IWYU changes up to ratio of 0.3Daniel Moody
2020-09-25SERVER-51084 tweak range loop variable types to fix xcode buildBilly Donahue
2019-07-27SERVER-40160 Remove `if_constexpr.h` header.ADAM David Alan Martin
This header circumvented bad formatting which `clang-format-3.8` imparted to `if constexpr`. Now `clang-format-7.0.1` imparts a reasonable format to `if constexpr` so this header is not needed anymore.
2019-07-27SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.1
2019-06-27SERVER-7143 replace standard library number parsing with custom NumberParserNathan Brown
2019-04-09SERVER-40476 remove mongoutils::strBilly Donahue
Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2017-09-29SERVER-31227 clean up and optimize parseNumberFromStringMathias Stearn
2016-12-27SERVER-23420 Remove use of GNU extensions in parse_number_test.cppMark Benvenuto
2016-06-17SERVER-24651 Add and use string data literalsJason Carey
Replace StringData("foo", StringData::LiteralTag()) with "foo"_sd
2016-05-28SERVER-23971 Clang-Format codeMark Benvenuto
2015-06-29SERVER-18928: replace "mongo/platform/cstdint.h" with <cstdint>Kang In Cheol
Signed-off-by: Ramon Fernandez <ramon.fernandez@mongodb.com> Closes #988
2015-06-20SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto
2015-03-11SERVER-17552 Use correct OS detection macros, rather than our ownAndrew Morrow
2015-02-05SERVER-8944 Use C++11 standard library functions for double NaN and Infinity ↵Siyuan Zhou
detection
2015-01-15SERVER-13256 Remove pch.hAndrew Morrow
2015-01-05SERVER-13256 Prohibit new uses of pch.hAndrew Morrow
2014-06-02SERVER-14110 Take responsibility for numerical conversions away from boost ↵Shaun Verch
program options
2013-12-10SERVER-8886 Final set of license exceptions for OpenSSLIan Whalen
2013-03-14SERVER-8936 use proper macro name for SolarisEric Milkie
2013-03-14SERVER-8936 Do not test parsing hexadecimal floating point on Solaris; not ↵Andy Schwerin
supported.
2013-03-12SERVER-8936 Improved Windows support of parseNumberFromString<double>().Andy Schwerin
Separately parse +/-infinity and nan, which Windows strtod does not handle. When testing on Windows, do not test parsing hexadecimal floating point representations, which Windows strtod does not support. Reenable the parse_number_test.
2013-03-11SERVER-8936 Fix parse_number_test on RHEL5 32-bit and Windows.Andy Schwerin
For RHEL5 32-bit, use a number much closer to 0 for underflow testing. For 32-bit Windows, switch to mongo::isNaN and mongo::isInf.
2013-03-11Implement parseNumberFromStringWithBase<double>().Andy Schwerin
2013-01-09Fix handling of short, invalid inputs to parseNumberFromString() and its ilk.Andy Schwerin
There were two notable bugs. The strings "+" and "-" were parsing successfully as the number 0. The strings "0x" and "0X" were also parsing successfully as the number 0, when they should be an error.
2012-12-07Implement parseNumberFromString directly, rather than through strtol, and ↵Andy Schwerin
support StringData.
2012-11-06Move ASSERT_OK macro into mongo/unittest/unittest.h.Andy Schwerin
Previously, every test file that wanted it was defining it.
2012-10-01Revert "Support templated unittest test suites."Mathias Stearn
This reverts commit b897ff2d1d6c32e43f4efbcbd4956b645bd3eb8b.
2012-09-30Support templated unittest test suites.Mathias Stearn
2012-09-25parseNumberFromString* functionsAndy Schwerin
A uniform interface for parsing numbers out of strings, with implementations for the standard integer types. Extension to double should be straightforward. Tests included.