JFlexTokenizerTest.java revision 1076
58N/A * CDDL HEADER START 58N/A * The contents of this file are subject to the terms of the 58N/A * Common Development and Distribution License (the "License"). 58N/A * You may not use this file except in compliance with the License. 58N/A * language governing permissions and limitations under the License. 58N/A * When distributing Covered Code, include this CDDL HEADER in each 58N/A * If applicable, add the following below this CDDL HEADER, with the 58N/A * fields enclosed by brackets "[]" replaced with your own identifying 58N/A * information: Portions Copyright [yyyy] [name of copyright owner] 58N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 58N/A * Unit tests for JFlexTokenizer. 58N/A * Test that the various sub-classes of JFlexTokenizerTest return the 58N/A * correct offsets for the tokens. They used to give wrong values for 58N/A * the last token. Bug #15858. 242N/A // The Fortran tokenizer doesn't accept the default input text, so 830N/A // create a text fragment that it understands 830N/A "1 token1 = token2 + token3",
* Helper method for {@link #testOffsetAttribute()} that runs the test * on one single implementation class. * Helper method for {@link #testOffsetAttribute()} that runs the test * on one single implementation class with the specified input text and * The fix for bug #15858 caused a regression in ShSymbolTokenizer where * variables on the form {@code ${VARIABLE}} were not correctly indexed * if they were inside a quoted string. The closing brace would be part of * the indexed term in that case. // Shell command to tokenize // "echo" is an ignored token in ShSymbolTokenizer, "xyz" is a string // and not a symbol. Therefore, expect just the two tokens that name