Commit a81585b5 authored by Milo Yip's avatar Milo Yip

Further improve SkipWhitespace coverage

parent 998e76fe
...@@ -46,12 +46,12 @@ using namespace rapidjson_simd; ...@@ -46,12 +46,12 @@ using namespace rapidjson_simd;
#endif #endif
TEST(SIMD, SIMD_SUFFIX(SkipWhitespace)) { TEST(SIMD, SIMD_SUFFIX(SkipWhitespace)) {
char buffer[257]; char buffer[1025];
for (size_t i = 0; i < 256; i++) for (size_t i = 0; i < 1024; i++)
buffer[i] = " \t\r\n"[i % 4]; buffer[i] = " \t\r\n"[i % 4];
for (size_t i = 0; i < 256; i += 15) for (size_t i = 0; i < 1024; i += 31)
buffer[i] = 'X'; buffer[i] = 'X';
buffer[256] = '\0'; buffer[1024] = '\0';
StringStream s(buffer); StringStream s(buffer);
for(;;) { for(;;) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment