~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/table_identifier.cc

  • Committer: Brian Aker
  • Date: 2010-10-26 21:56:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1886.
  • Revision ID: brian@tangent.org-20101026215622-6fcmp520ouj5446p
Update Key to work a bit faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
  const TableIdentifier::Key key= identifier.getKey();
65
65
 
66
66
  EXPECT_EQ(key.size(), 7);
67
 
  EXPECT_EQ(key[0], 't');
68
 
  EXPECT_EQ(key[1], 'e');
69
 
  EXPECT_EQ(key[2], 's');
70
 
  EXPECT_EQ(key[3], 't');
71
 
  EXPECT_EQ(key[4], 0);
72
 
  EXPECT_EQ(key[5], 'a');
73
 
  EXPECT_EQ(key[6], 0);
 
67
  EXPECT_EQ(key.vector()[0], 't');
 
68
  EXPECT_EQ(key.vector()[1], 'e');
 
69
  EXPECT_EQ(key.vector()[2], 's');
 
70
  EXPECT_EQ(key.vector()[3], 't');
 
71
  EXPECT_EQ(key.vector()[4], 0);
 
72
  EXPECT_EQ(key.vector()[5], 'a');
 
73
  EXPECT_EQ(key.vector()[6], 0);
74
74
}
75
75
 
76
76
TEST(table_identifier_test_key, KeyCompare)