Question about fast_int test suite leading zeros
https://github.com/fastfloat/fast_float/blob/88b1e5321c6918cbe091afd76728296290668403/tests/fast_int.cpp#L766-L803
Hi, I can't figure out how this case is supposed to work, could you help me? These values don't parse to 1015 in their respective bases.
000000000000000000000000000000000000000000000000000000000000000000000011 is 3 in base2
11110111 is 3253 is base3
etc
I guess the block is suppose to test that fast_float handles leading zeros correctly, but could you help me understand the check against 1015? I'm just horribly confused reading this.
Thank you so much for the libary, and furthermore for your time with this issue.
关闭于 2025-09-23 3 条评论