Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 267-276
Link Here
|
267 |
char[] source = "0xaapaf".toCharArray(); //$NON-NLS-1$ |
267 |
char[] source = "0xaapaf".toCharArray(); //$NON-NLS-1$ |
268 |
scanner.setSource(source); |
268 |
scanner.setSource(source); |
269 |
scanner.resetTo(0, source.length - 1); |
269 |
scanner.resetTo(0, source.length - 1); |
270 |
int counter = 0; |
|
|
271 |
try { |
270 |
try { |
272 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
271 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
273 |
counter++; |
272 |
// ignore |
274 |
} |
273 |
} |
275 |
} catch (InvalidInputException e) { |
274 |
} catch (InvalidInputException e) { |
276 |
assertTrue(true); |
275 |
assertTrue(true); |
Lines 287-296
Link Here
|
287 |
char[] source = "0xaap.1f".toCharArray(); //$NON-NLS-1$ |
286 |
char[] source = "0xaap.1f".toCharArray(); //$NON-NLS-1$ |
288 |
scanner.setSource(source); |
287 |
scanner.setSource(source); |
289 |
scanner.resetTo(0, source.length - 1); |
288 |
scanner.resetTo(0, source.length - 1); |
290 |
int counter = 0; |
|
|
291 |
try { |
289 |
try { |
292 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
290 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
293 |
counter++; |
291 |
// ignore |
294 |
} |
292 |
} |
295 |
} catch (InvalidInputException e) { |
293 |
} catch (InvalidInputException e) { |
296 |
assertTrue(true); |
294 |
assertTrue(true); |
Lines 383-392
Link Here
|
383 |
char[] source = "0x".toCharArray(); //$NON-NLS-1$ |
381 |
char[] source = "0x".toCharArray(); //$NON-NLS-1$ |
384 |
scanner.setSource(source); |
382 |
scanner.setSource(source); |
385 |
scanner.resetTo(0, source.length - 1); |
383 |
scanner.resetTo(0, source.length - 1); |
386 |
int counter = 0; |
|
|
387 |
try { |
384 |
try { |
388 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
385 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
389 |
counter++; |
386 |
// ignore |
390 |
} |
387 |
} |
391 |
} catch (InvalidInputException e) { |
388 |
} catch (InvalidInputException e) { |
392 |
assertTrue(true); |
389 |
assertTrue(true); |
Lines 403-412
Link Here
|
403 |
char[] source = "0x".toCharArray(); //$NON-NLS-1$ |
400 |
char[] source = "0x".toCharArray(); //$NON-NLS-1$ |
404 |
scanner.setSource(source); |
401 |
scanner.setSource(source); |
405 |
scanner.resetTo(0, source.length - 1); |
402 |
scanner.resetTo(0, source.length - 1); |
406 |
int counter = 0; |
|
|
407 |
try { |
403 |
try { |
408 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
404 |
while (scanner.getNextToken() != ITerminalSymbols.TokenNameEOF) { |
409 |
counter++; |
405 |
// ignore |
410 |
} |
406 |
} |
411 |
} catch (InvalidInputException e) { |
407 |
} catch (InvalidInputException e) { |
412 |
assertTrue(true); |
408 |
assertTrue(true); |