Test.
()
| 65 | |
| 66 | /** Test. */ |
| 67 | @Test public void reject() { |
| 68 | // too long string |
| 69 | reject("abcde"); |
| 70 | // too long string (and too large digit) |
| 71 | reject("2147483648"); |
| 72 | // mixture of whitespace and non-whitespace |
| 73 | reject(" 1"); |
| 74 | reject("1 "); |
| 75 | // too much whitespace |
| 76 | reject(" "); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Tests the correctness of the compressed tokens. |