mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
66 lines
2 KiB
Text
66 lines
2 KiB
Text
* C:\upp\out\autotest\CLANGx64.Debug.Debug_Full\Atoi.exe 22.06.2021 08:44:47, user: cxl
|
|
|
|
TestAtoi("2147483647") = 2147483647
|
|
TestAtoi("2147483648") = -999
|
|
TestAtoi("-2147483647") = -2147483647
|
|
TestAtoi("-2147483648") =
|
|
TestAtoi("-2147483649") = -999
|
|
TestAtoi("0") = 0
|
|
TestAtoi("-0") = 0
|
|
TestAtoi64("9223372036854775807") = 9223372036854775807
|
|
TestAtoi64("9223372036854775808") = -999
|
|
TestAtoi64("-9223372036854775807") = -9223372036854775807
|
|
TestAtoi64("-9223372036854775808") =
|
|
TestAtoi64("-9223372036854775809") = -999
|
|
TestAtoi64("0") = 0
|
|
TestAtoi64("-0") = 0
|
|
TestAtoi64("") = -999
|
|
TestAtoi64("z") = -999
|
|
TestAtoiHex("f") = 0xf
|
|
TestAtoiHex("7fffFFFF") = 0x7fffffff
|
|
CParser("123456").ReadInt() = 123456
|
|
CParser("123456").ReadInt64() = 123456
|
|
CParser("-123456").ReadInt() = -123456
|
|
CParser("-123456").ReadInt64() = -123456
|
|
CParser("123456").ReadNumber() = 123456
|
|
CParser("1010").ReadNumber(2) = 10
|
|
CParser("10").ReadNumber(4) = 4
|
|
CParser("123456").ReadNumber(8) = 42798
|
|
CParser("123456").ReadNumber(16) = 1193046
|
|
CParser("123456").ReadNumber64() = 123456
|
|
CParser("10").ReadNumber(4) = 4
|
|
CParser("1010").ReadNumber64(2) = 10
|
|
CParser("123456").ReadNumber64(8) = 42798
|
|
CParser("123456").ReadNumber64(16) = 1193046
|
|
p.ReadInt() = 1
|
|
p.ReadInt() = 2
|
|
p.ReadInt64() = 3
|
|
p.ReadInt64() = 4
|
|
p.ReadNumber() = 5
|
|
p.ReadNumber64() = 6
|
|
ScanInt(s, &s) = 1
|
|
ScanInt(s, &s) = 2
|
|
StrInt("123456") = 123456
|
|
StrInt("-123456") = -123456
|
|
ScanInt64(s, &s) = 1
|
|
ScanInt64(s, &s) = 2
|
|
StrInt64("123456") = 123456
|
|
StrInt64("-123456") = -123456
|
|
e = (1,1): number is too big
|
|
e = (1,1): missing number
|
|
e = (1,1): missing number
|
|
e = (1,1): number is too big
|
|
e = (1,1): number is too big
|
|
e = (1,1): number is too big
|
|
e = (1,1): number is too big
|
|
CParser("123456123").ReadNumber64() = 123456123
|
|
CParser("123456123").ReadNumber64(8) = 21912659
|
|
CParser("123456123").ReadNumber64(16) = 591749411
|
|
Atoi("") = 0
|
|
Atoi("x") = 0
|
|
Atoi("123") = 123
|
|
Atoi("-123") = -123
|
|
Atoi64("") = 0
|
|
Atoi64("x") = 0
|
|
Atoi64("123") = 123
|
|
Atoi64("-123") = -123
|