Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mjtest-tests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPDSnelting
mjtest-tests
Commits
558ec124
Commit
558ec124
authored
Nov 25, 2018
by
ufebl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create more semantic testcases from the feedback
parent
f43a4f46
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
75 additions
and
0 deletions
+75
-0
semantic/array_creation_boolean.invalid.mj
semantic/array_creation_boolean.invalid.mj
+5
-0
semantic/array_creation_ident.invalid.mj
semantic/array_creation_ident.invalid.mj
+6
-0
semantic/array_creation_null.invalid.mj
semantic/array_creation_null.invalid.mj
+5
-0
semantic/call_method_on_assignment.java
semantic/call_method_on_assignment.java
+19
-0
semantic/call_method_on_undefined_type.invalid.mj
semantic/call_method_on_undefined_type.invalid.mj
+8
-0
semantic/compare_system.invalid.java
semantic/compare_system.invalid.java
+5
-0
semantic/compare_system_in.invalid.java
semantic/compare_system_in.invalid.java
+5
-0
semantic/compare_system_null.invalid.java
semantic/compare_system_null.invalid.java
+5
-0
semantic/compare_system_out.invalid.java
semantic/compare_system_out.invalid.java
+5
-0
semantic/invalid_compare_null_int.invalid.mj
semantic/invalid_compare_null_int.invalid.mj
+5
-0
semantic/missing_return_value.invalid.mj
semantic/missing_return_value.invalid.mj
+7
-0
No files found.
semantic/array_creation_boolean.invalid.mj
0 → 100644
View file @
558ec124
class Test {
public static void main(String[] args) {
int[] a = new int[false];
}
}
semantic/array_creation_ident.invalid.mj
0 → 100644
View file @
558ec124
class Test {
public static void main(String[] args) {
Test test = null;
int[] a = new int[test];
}
}
semantic/array_creation_null.invalid.mj
0 → 100644
View file @
558ec124
class Test {
public static void main(String[] args) {
int[] a = new int[null];
}
}
semantic/call_method_on_assignment.java
0 → 100644
View file @
558ec124
class
Test
{
public
static
void
main
(
String
[]
args
)
{
Test
test
=
null
;
(
test
=
new
Test
()).
test
();
(
test
=
new
Test
()).
test
=
5
;
(
test
.
test
()).
test
();
Test
[]
tests
=
null
;
(
tests
=
new
Test
[
5
])[
0
].
test
();
new
Test
[
5
][
0
].
test
();
}
public
Test
test
()
{
return
this
;
}
public
int
test
;
}
semantic/call_method_on_undefined_type.invalid.mj
0 → 100644
View file @
558ec124
class Test {
public static void main(String[] args) {
Foo foo = new Foo();
foo.foo();
foo.foo = 123;
foo.main(null);
}
}
semantic/compare_system.invalid.java
0 → 100644
View file @
558ec124
class
Test
{
public
static
void
main
(
String
[]
args
)
{
boolean
test
=
System
==
System
;
}
}
semantic/compare_system_in.invalid.java
0 → 100644
View file @
558ec124
class
Test
{
public
static
void
main
(
String
[]
args
)
{
boolean
test
=
System
.
in
==
System
.
in
;
}
}
semantic/compare_system_null.invalid.java
0 → 100644
View file @
558ec124
class
Test
{
public
static
void
main
(
String
[]
args
)
{
boolean
test
=
System
.
out
==
null
;
}
}
semantic/compare_system_out.invalid.java
0 → 100644
View file @
558ec124
class
Test
{
public
static
void
main
(
String
[]
args
)
{
boolean
test
=
System
.
out
==
System
.
out
;
}
}
semantic/invalid_compare_null_int.invalid.mj
0 → 100644
View file @
558ec124
class Test {
public static void main(String[] args) {
boolean b = null && 2;
}
}
semantic/missing_return_value.invalid.mj
0 → 100644
View file @
558ec124
class Test {
public static void main(String[] args) {
}
public int foo() {
return;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment