64
64
const identifier::Table::Key key= identifier.getKey();
66
BOOST_REQUIRE_EQUAL(key.size(), 7);
67
BOOST_REQUIRE_EQUAL(key.vector()[0], 't');
68
BOOST_REQUIRE_EQUAL(key.vector()[1], 'e');
69
BOOST_REQUIRE_EQUAL(key.vector()[2], 's');
70
BOOST_REQUIRE_EQUAL(key.vector()[3], 't');
71
BOOST_REQUIRE_EQUAL(key.vector()[4], 0);
72
BOOST_REQUIRE_EQUAL(key.vector()[5], 'a');
73
BOOST_REQUIRE_EQUAL(key.vector()[6], 0);
66
BOOST_REQUIRE_EQUAL(key.size(), 13);
68
BOOST_REQUIRE_EQUAL(key.vector()[i++], 'l');
69
BOOST_REQUIRE_EQUAL(key.vector()[i++], 'o');
70
BOOST_REQUIRE_EQUAL(key.vector()[i++], 'c');
71
BOOST_REQUIRE_EQUAL(key.vector()[i++], 'a');
72
BOOST_REQUIRE_EQUAL(key.vector()[i++], 'l');
73
BOOST_REQUIRE_EQUAL(key.vector()[i++], 0);
74
BOOST_REQUIRE_EQUAL(key.vector()[i++], 't');
75
BOOST_REQUIRE_EQUAL(key.vector()[i++], 'e');
76
BOOST_REQUIRE_EQUAL(key.vector()[i++], 's');
77
BOOST_REQUIRE_EQUAL(key.vector()[i++], 't');
78
BOOST_REQUIRE_EQUAL(key.vector()[i++], 0);
79
BOOST_REQUIRE_EQUAL(key.vector()[i++], 'a');
80
BOOST_REQUIRE_EQUAL(key.vector()[i++], 0);
76
83
BOOST_AUTO_TEST_CASE(KeyCompare)