|
@@ -100,7 +100,7 @@ TEST_F(InputSourceTest, getAndUngetChar) {
|
|
}
|
|
}
|
|
|
|
|
|
// ungetAll() should skip back to the place where the InputSource
|
|
// ungetAll() should skip back to the place where the InputSource
|
|
-// started at construction.
|
|
|
|
|
|
+// started at construction, or the last saved start of line.
|
|
TEST_F(InputSourceTest, ungetAll) {
|
|
TEST_F(InputSourceTest, ungetAll) {
|
|
while (!source_.atEOF()) {
|
|
while (!source_.atEOF()) {
|
|
source_.getChar();
|
|
source_.getChar();
|
|
@@ -117,7 +117,6 @@ TEST_F(InputSourceTest, ungetAll) {
|
|
EXPECT_FALSE(source_.atEOF());
|
|
EXPECT_FALSE(source_.atEOF());
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
// Test line counters.
|
|
// Test line counters.
|
|
TEST_F(InputSourceTest, lines) {
|
|
TEST_F(InputSourceTest, lines) {
|
|
size_t line = 1;
|
|
size_t line = 1;
|