~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/table_identifier.cc

  • Committer: Mark Atwood
  • Date: 2012-01-04 16:59:32 UTC
  • mfrom: (2478.2.3 real-key-use-catalog)
  • Revision ID: me@mark.atwood.name-20120104165932-cm0xqs4by0u3p4cy
mergeĀ lp:~stewart/drizzle/key-use-catalog

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
  const identifier::Table::Key key= identifier.getKey();
65
65
 
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);
 
67
  int i=0;
 
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);
74
81
}
75
82
 
76
83
BOOST_AUTO_TEST_CASE(KeyCompare)