-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added java token position tests from J_APPLY to J_ASSIGN
- Loading branch information
1 parent
644cdb8
commit dfd455a
Showing
10 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
languages/java/src/test/resources/de/jplag/java/tokenPositions/Apply_1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> System.out.println("Test"); | ||
$ | J_APPLY 18 | ||
> } | ||
>} |
6 changes: 6 additions & 0 deletions
6
languages/java/src/test/resources/de/jplag/java/tokenPositions/Apply_2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> new String("test").length(); | ||
$ | J_APPLY 6 | ||
> } | ||
>} |
10 changes: 10 additions & 0 deletions
10
languages/java/src/test/resources/de/jplag/java/tokenPositions/Apply_3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
>import java.io.File; | ||
> | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> File file = new File("test"); | ||
> file.getName().length(); | ||
$ | J_APPLY 12 | ||
$ | J_APPLY 6 | ||
> } | ||
>} |
7 changes: 7 additions & 0 deletions
7
languages/java/src/test/resources/de/jplag/java/tokenPositions/ArrayInit_1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> int[] data = new int[]{1,2,3,4}; | ||
$ | J_ARRAY_INIT_BEGIN 1 | ||
$ | J_ARRAY_INIT_END 1 | ||
> } | ||
>} |
7 changes: 7 additions & 0 deletions
7
languages/java/src/test/resources/de/jplag/java/tokenPositions/ArrayInit_2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
>@SuppressWarnings({"Test1", "Test2"}) | ||
$ | J_ARRAY_INIT_BEGIN 1 | ||
$ | J_ARRAY_INIT_END 1 | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> } | ||
>} |
6 changes: 6 additions & 0 deletions
6
languages/java/src/test/resources/de/jplag/java/tokenPositions/Assert_1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> assert true; | ||
$ | J_ASSERT 6 | ||
> } | ||
>} |
6 changes: 6 additions & 0 deletions
6
languages/java/src/test/resources/de/jplag/java/tokenPositions/Assert_2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> assert args.length == 0; | ||
$ | J_ASSERT 6 | ||
> } | ||
>} |
6 changes: 6 additions & 0 deletions
6
languages/java/src/test/resources/de/jplag/java/tokenPositions/Assign_1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> int i = 1; | ||
$ | J_ASSIGN 3 | ||
> } | ||
>} |
7 changes: 7 additions & 0 deletions
7
languages/java/src/test/resources/de/jplag/java/tokenPositions/Assign_2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> int i = 1; | ||
> i = 2; | ||
$ | J_ASSIGN 3 | ||
> } | ||
>} |
7 changes: 7 additions & 0 deletions
7
languages/java/src/test/resources/de/jplag/java/tokenPositions/Assign_3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
>class Apply { | ||
> public static void main(String[] args) { | ||
> int i = 1; | ||
> i = (int) Math.random(); | ||
$ | J_ASSIGN 3 | ||
> } | ||
>} |