Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uqdwn
mjtest-tests
Commits
5d74b88f
Commit
5d74b88f
authored
Nov 02, 2018
by
uceme
Committed by
Johannes Bucher
Nov 02, 2018
Browse files
Add more (mostly invalid) syntax test cases
parent
9c1f1cf1
Changes
16
Hide whitespace changes
Inline
Side-by-side
syntax/class_no_block.invalid.mj
0 → 100644
View file @
5d74b88f
class A
\ No newline at end of file
syntax/class_no_block_semicolon.invalid.mj
0 → 100644
View file @
5d74b88f
class A;
\ No newline at end of file
syntax/class_without_ident.invalid.mj
0 → 100644
View file @
5d74b88f
class {}
\ No newline at end of file
syntax/field_ident_is_keyword.invalid.mj
0 → 100644
View file @
5d74b88f
class Test {
public void class;
}
\ No newline at end of file
syntax/field_missing_semicolon.invalid.mj
0 → 100644
View file @
5d74b88f
class A {
public int duck
}
\ No newline at end of file
syntax/field_private.invalid.mj
0 → 100644
View file @
5d74b88f
class A {
private int hello;
}
\ No newline at end of file
syntax/field_type_is_keyword.invalid.mj
0 → 100644
View file @
5d74b88f
class A {
public while testing;
}
\ No newline at end of file
syntax/if_else_empty.mj
0 → 100644
View file @
5d74b88f
class Hi {
public Hello Hey() {
if(angry) {} else;
}
}
\ No newline at end of file
syntax/if_empty_else_empty.mj
0 → 100644
View file @
5d74b88f
class Tree {
public Leafs falling(bool really) {
/* broken method */
if(autumn);else;
}
}
\ No newline at end of file
syntax/main_as_statement.invalid.mj
0 → 100644
View file @
5d74b88f
class A {
public static void IDENT(String[]ident);
}
\ No newline at end of file
syntax/main_string_array_expression.invalid.mj
0 → 100644
View file @
5d74b88f
class box {
public static void method(String[5]a){}
}
\ No newline at end of file
syntax/method_methodRest.mj
0 → 100644
View file @
5d74b88f
class HowAreYou {
public Library opening(Times incorrect) throws Exception{}
}
\ No newline at end of file
syntax/method_missing_ident.invalid.mj
0 → 100644
View file @
5d74b88f
class Noooooooo {
public void(){}
}
\ No newline at end of file
syntax/method_missing_parameter.invalid.mj
0 → 100644
View file @
5d74b88f
class A{
public Chicken likes(,eating corn) {}
}
\ No newline at end of file
syntax/method_private.invalid.mj
0 → 100644
View file @
5d74b88f
class Detective {
private void method(){}
}
\ No newline at end of file
syntax/missing_class_keyword.invalid.mj
0 → 100644
View file @
5d74b88f
A {
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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