mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Patch for Victor Mozgin
Update of ChangeLog & ui.tests for PR 38065.
This commit is contained in:
parent
b48df83281
commit
c3bab5f786
2 changed files with 25 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
2003-06-06 Victor Mozgin
|
||||
Fixed Bug 38065 - Scanner skipped backslashes inside the code
|
||||
|
||||
2003-06-05 John Camelon
|
||||
Fix Bug 38380 "Include" class public methods fails JUnit tests
|
||||
|
||||
|
|
|
@ -1356,4 +1356,26 @@ public class ScannerTestCase extends BaseScannerTest
|
|||
validateDefinition("G", "a '\"'");
|
||||
validateDefinition("H", "a '\\'//b'\"/*bo\\o*/\" b");
|
||||
}
|
||||
|
||||
public void testBug38065() throws Exception
|
||||
{
|
||||
initializeScanner( "Foo\\\nBar" );
|
||||
|
||||
validateIdentifier("FooBar");
|
||||
validateEOF();
|
||||
|
||||
try {
|
||||
initializeScanner( "Foo\\Bar" );
|
||||
|
||||
validateIdentifier("Foo");
|
||||
validateIdentifier("Bar");
|
||||
validateEOF();
|
||||
|
||||
} catch (ScannerException se) {
|
||||
// if Scanner.throwExceptionOnBadCharacterRead == true
|
||||
// we might end up with valid ScannerException "Invalid character ..."
|
||||
// for '\'
|
||||
assertTrue(se.getMessage().equals("Invalid character '\\' read @ offset 5 of file TEXT"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue