~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/table_identifier.cc

  • Committer: Stewart Smith
  • Date: 2012-01-04 08:58:39 UTC
  • mto: This revision was merged to the branch mainline in revision 2484.
  • Revision ID: stewart@flamingspork.com-20120104085839-haupx8zwt5vl7dch
fix table_identifier unittest for having catalog as part of the key

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)