Browse Source

[2375] a few trivial comment updates (fixing copy-paste errors)

JINMEI Tatuya 12 years ago
parent
commit
00256ac162
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/tests/master_lexer_unittest.cc

+ 2 - 2
src/lib/dns/tests/master_lexer_unittest.cc

@@ -185,13 +185,13 @@ TEST_F(MasterLexerTest, getUnbalancedParen) {
     EXPECT_EQ(MasterLexer::Token::END_OF_FILE, lexer.getNextToken().getType());
     EXPECT_EQ(MasterLexer::Token::END_OF_FILE, lexer.getNextToken().getType());
 }
 }
 
 
-// Check we properly return error when there's an opened parentheses and no
+// Check we properly return error when there's an opened quoted string and no
 // closing one
 // closing one
 TEST_F(MasterLexerTest, getUnbalancedString) {
 TEST_F(MasterLexerTest, getUnbalancedString) {
     ss << "\"string";
     ss << "\"string";
     lexer.pushSource(ss);
     lexer.pushSource(ss);
 
 
-    // Then an unbalanced parenthesis
+    // Then an unbalanced qstring (reported as an unexpected end)
     EXPECT_EQ(MasterLexer::Token::UNEXPECTED_END,
     EXPECT_EQ(MasterLexer::Token::UNEXPECTED_END,
               lexer.getNextToken(MasterLexer::QSTRING).getErrorCode());
               lexer.getNextToken(MasterLexer::QSTRING).getErrorCode());
     // And then EOF
     // And then EOF