cxxopts/test
DevCodeOne d7b930846c Fix some strange issues in integer_parser (#80)
* Prevent malformed numbers from being parsed as correct numbers.

Fixes #78. If you passed a string for example "test" it would get parsed to 1400.
The problem was that the parser did not throw an exception when an incorrect char was encountered.
Also a number without 0x in front with hexadecimal digits in it got parsed.
The number was treated as a hexadecimal number but it was still calculated with base 10.
So now before the current char is used, it is checked if it is valid in the current base.
Furthermore the number 0x0 was not a valid number, it now is a special case in the `integer_pattern`.

* Fixed `integer_pattern` so it works correctly under clang. Added testcase for invalid integers and for 0x0 being a valid number.
2017-11-02 08:14:21 +11:00
..
add-subdirectory-test Cmake overhaul (#53) 2017-06-23 18:38:42 +10:00
find-package-test Cmake overhaul (#53) 2017-06-23 18:38:42 +10:00
.gitignore ignore built files 2016-08-26 08:26:42 +10:00
catch.hpp add testing 2016-08-25 08:49:56 +10:00
CMakeLists.txt Cmake overhaul (#53) 2017-06-23 18:38:42 +10:00
main.cpp missing file 2017-05-31 17:57:27 +10:00
options.cpp Fix some strange issues in integer_parser (#80) 2017-11-02 08:14:21 +11:00