Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added test for set of map

  • Loading branch information...
commit af364a1b6d117ec03a86b988faadc00af8dc7896 1 parent d6f61b7
@martin-seomoz martin-seomoz authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Serialize/test/JsonSerilizeTest.cpp
View
6 Serialize/test/JsonSerilizeTest.cpp
@@ -76,6 +76,12 @@ TEST(JsonSerialize, SetOfPOD)
std::string result = testAction<std::set<int> >(input);
ValidateSerializedStrings(input, result);
}
+TEST(JsonSerialize, SetOfMap)
+{
+ std::string input = "[ {\"a\": 1, \"b\": 2, \"c\": 3}, {\"a\": 2, \"b\": 2, \"c\": 2}, {\"a\": 2, \"b\":2, \"c\": 3}]";
+ std::string result = testAction<std::set<std::map<std::string, int> > >(input);
+ ValidateSerializedStrings(input, result);
+}
class EmptyJsonClass
Please sign in to comment.
Something went wrong with that request. Please try again.