Fix typo in new unit.hpp comments

This commit is contained in:
Trevor Welsby 2016-01-23 17:31:58 +10:00
parent 7e3245786c
commit bd0f3001c6

View file

@ -11537,19 +11537,19 @@ TEST_CASE("regression tests")
const json j_const = j; const json j_const = j;
// Non-const access with key as "char []" // Const access with key as "char []"
CHECK(j_const[array_key] == json(1)); CHECK(j_const[array_key] == json(1));
// Non-const access with key as "const char[]" // Const access with key as "const char[]"
CHECK(j_const[const_array_key] == json(2)); CHECK(j_const[const_array_key] == json(2));
// Non-const access with key as "char *" //Const access with key as "char *"
CHECK(j_const[ptr_key] == json(3)); CHECK(j_const[ptr_key] == json(3));
// Non-const access with key as "const char *" // Const access with key as "const char *"
CHECK(j_const[const_ptr_key] == json(4)); CHECK(j_const[const_ptr_key] == json(4));
// Non-const access with key as "static constexpr const char *" // Const access with key as "static constexpr const char *"
CHECK(j_const[constexpr_ptr_key] == json(5)); CHECK(j_const[constexpr_ptr_key] == json(5));
} }
} }