-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
SwiftTokenizerTest.java
67 lines (52 loc) · 1.13 KB
/
SwiftTokenizerTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.swift.cpd;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
import net.sourceforge.pmd.lang.swift.SwiftLanguageModule;
class SwiftTokenizerTest extends CpdTextComparisonTest {
SwiftTokenizerTest() {
super(SwiftLanguageModule.getInstance(), ".swift");
}
@Test
void testSwift42() {
doTest("Swift4.2");
}
@Test
void testSwift50() {
doTest("Swift5.0");
}
@Test
void testSwift51() {
doTest("Swift5.1");
}
@Test
void testSwift52() {
doTest("Swift5.2");
}
@Test
void testSwift53() {
doTest("Swift5.3");
}
@Test
void testSwift55() {
doTest("Swift5.5");
}
@Test
void testSwift56() {
doTest("Swift5.6");
}
@Test
void testSwift59() {
doTest("Swift5.9");
}
@Test
void testStackoverflowOnLongLiteral() {
doTest("Issue628");
}
@Test
void testTabWidth() {
doTest("tabWidth");
}
}