Ran
|
Files
89
|
Run time
6s
|
Badge
Embed ▾
README BADGES
|
push
github
Fix binary number literal parsing. Reported by Egor Skriptunoff. (cherry-picked from commit 377a8488b) Binary number with fractional part is invalid. Parsing of such binary numbers returns `STRSCAN_ERROR` for any numbers with non-zero fractional part, because it gives non-zero power of the exponent (`ex2`) in `strscan_bin()`. But binary numbers with a zero fractional part considered as valid numbers. To avoid such inconsistency the check, that the given base doesn't equal 2, is added, when parsing decimal point part of the literal. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#8825
5344 of 6001 branches covered (89.05%)
Branch coverage included in aggregate %.
20506 of 23406 relevant lines covered (87.61%)
1253241.71 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|