Browse files

change remapclasses_initialize_vector initial state to freeze

  • Loading branch information...
1 parent 4e289b6 commit 95d7c26883a4433a93a31a4cd3cadedff869ba8c @tekezo committed Nov 18, 2012
View
8 Tests/lib/xml_compiler/test.cpp
@@ -668,9 +668,16 @@ TEST(pqrs_xml_compiler_symbol_map, add)
EXPECT_EQ(static_cast<uint32_t>(1025), s.get("KeyCode::VK_NEW2"));
}
+TEST(pqrs_xml_compiler_remapclasses_initialize_vector, get)
+{
+ pqrs::xml_compiler::remapclasses_initialize_vector v;
+ EXPECT_EQ(2, v.get().size());
+}
+
TEST(pqrs_xml_compiler_remapclasses_initialize_vector, add)
{
pqrs::xml_compiler::remapclasses_initialize_vector v;
+ v.clear();
v.start(1, "remap.empty");
v.end();
@@ -707,6 +714,7 @@ TEST(pqrs_xml_compiler_remapclasses_initialize_vector, add)
TEST(pqrs_xml_compiler_remapclasses_initialize_vector, add_partial)
{
pqrs::xml_compiler::remapclasses_initialize_vector v;
+ v.clear();
v.start(1, "remap.empty");
v.end();
View
1 src/lib/xml_compiler/src/xml_compiler+remapclasses_initialize_vector.cpp
@@ -6,6 +6,7 @@ namespace pqrs {
xml_compiler::remapclasses_initialize_vector::remapclasses_initialize_vector(void)
{
clear();
+ freeze();
}
void

0 comments on commit 95d7c26

Please sign in to comment.