forked from phoedos/pmd
Test dollar in ident in python
This commit is contained in:
parent
078345fbca
commit
f80c73e44f
@ -51,4 +51,10 @@ public class PythonTokenizerTest extends CpdTextComparisonTest {
|
||||
public void testTabWidth() {
|
||||
doTest("tabWidth");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testVarWithDollar() {
|
||||
doTest("var_with_dollar");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,2 @@
|
||||
def check():
|
||||
a$a = []
|
13
pmd-python/src/test/resources/net/sourceforge/pmd/lang/python/cpd/testdata/var_with_dollar.txt
vendored
Normal file
13
pmd-python/src/test/resources/net/sourceforge/pmd/lang/python/cpd/testdata/var_with_dollar.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
[Image] or [Truncated image[ Bcol Ecol
|
||||
L1
|
||||
[def] 1 3
|
||||
[check] 5 9
|
||||
[(] 10 10
|
||||
[)] 11 11
|
||||
[:] 12 12
|
||||
L2
|
||||
[a$a] 5 7
|
||||
[=] 9 9
|
||||
[\[] 11 11
|
||||
[\]] 12 12
|
||||
EOF
|
Loading…
x
Reference in New Issue
Block a user