Skip to content

Commit

Permalink
fix for identifier and expect for test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Jan 13, 2023
1 parent ee4646e commit 99ce9aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/glaze/util/hash_map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ namespace glz
}
}

return single_char_hash_desc{ N, .valid = min_diff > 0, min_diff, hashes.front(), hashes.back(), IsFrontHash };
return single_char_hash_desc{ N, min_diff > 0, min_diff, hashes.front(), hashes.back(), IsFrontHash };
}

template <class T, single_char_hash_desc D>
Expand Down
4 changes: 3 additions & 1 deletion tests/json_test/json_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2924,9 +2924,11 @@ suite json_performance = []
obj_t obj{};

glz::read_json(obj, buffer);
buffer.clear();

glz::write_json(obj, buffer);

// TODO: add expect
expect(buffer == R"({"fixed_object":{"int_array":[0,1,2,3,4,5,6],"float_array":[0.1,0.2,0.3,0.4,0.5,0.6],"double_array":[3288398.238,2.33E24,28.9,0.928759872,0.22222848,0.1,0.2,0.3,0.4]},"fixed_name_object":{"name0":"James","name1":"Abraham","name2":"Susan","name3":"Frank","name4":"Alicia"},"another_object":{"string":"here is some text","another_string":"Hello World","boolean":false,"nested_object":{"v3s":[[0.12345,0.23456,0.001345],[0.3894675,97.39827,297.92387],[18.18,87.289,2988.298]],"id":"298728949872"}},"string_array":["Cat","Dog","Elephant","Tiger"],"string":"Hello world","number":3.14,"boolean":true,"another_bool":false})") << buffer;
};
};

Expand Down

0 comments on commit 99ce9aa

Please sign in to comment.