Fixed error when the key of a JsonObject is a char[] and reduced code size when using const references (issue #423)

This commit is contained in:
Benoit Blanchon
2017-01-22 11:10:45 +01:00
parent cc8c0472ca
commit a096098c1f
5 changed files with 25 additions and 9 deletions

View File

@ -131,3 +131,9 @@ TEST_(StoreObjectSubscript) {
EXPECT_EQ(42, _object["a"]);
}
TEST_(KeyAsCharArray) { // issue #423
char key[] = "hello";
_object[key] = 42;
EXPECT_EQ(42, _object[key]);
}