mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
test AssertStatement
This commit is contained in:
parent
5aabbddb8f
commit
6237546e10
7
test/fixtures/java/corpus/AssertStatement.A.java
vendored
Normal file
7
test/fixtures/java/corpus/AssertStatement.A.java
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class Dino {
|
||||||
|
void fn() {
|
||||||
|
for (File file : snap.index()) {
|
||||||
|
assert oldFile == null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
5
test/fixtures/java/corpus/AssertStatement.B.java
vendored
Normal file
5
test/fixtures/java/corpus/AssertStatement.B.java
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class Dino {
|
||||||
|
void fn() {
|
||||||
|
assert failure : "expecting non null";
|
||||||
|
}
|
||||||
|
}
|
25
test/fixtures/java/corpus/AssertStatement.diffA-B.txt
vendored
Normal file
25
test/fixtures/java/corpus/AssertStatement.diffA-B.txt
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
(Statements
|
||||||
|
(Class
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
(Method
|
||||||
|
(Void)
|
||||||
|
(Empty)
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
{+(AssertStatement
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(TextElement)+})+}
|
||||||
|
{-(ForEach
|
||||||
|
{-(Variable
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Call
|
||||||
|
{-(MemberAccess
|
||||||
|
{-(Identifier)-})-}
|
||||||
|
{-(Empty)-})-}
|
||||||
|
{-(Statements
|
||||||
|
{-(AssertStatement
|
||||||
|
{-(Equal
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(Null)-})-})-})-})-})))))
|
25
test/fixtures/java/corpus/AssertStatement.diffB-A.txt
vendored
Normal file
25
test/fixtures/java/corpus/AssertStatement.diffB-A.txt
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
(Statements
|
||||||
|
(Class
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
(Method
|
||||||
|
(Void)
|
||||||
|
(Empty)
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
{+(ForEach
|
||||||
|
{+(Variable
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Identifier)+})+}
|
||||||
|
{+(Call
|
||||||
|
{+(MemberAccess
|
||||||
|
{+(Identifier)+})+}
|
||||||
|
{+(Empty)+})+}
|
||||||
|
{+(Statements
|
||||||
|
{+(AssertStatement
|
||||||
|
{+(Equal
|
||||||
|
{+(Identifier)+}
|
||||||
|
{+(Null)+})+})+})+})+}
|
||||||
|
{-(AssertStatement
|
||||||
|
{-(Identifier)-}
|
||||||
|
{-(TextElement)-})-})))))
|
22
test/fixtures/java/corpus/AssertStatement.parseA.txt
vendored
Normal file
22
test/fixtures/java/corpus/AssertStatement.parseA.txt
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
(Statements
|
||||||
|
(Class
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
(Method
|
||||||
|
(Void)
|
||||||
|
(Empty)
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
(ForEach
|
||||||
|
(Variable
|
||||||
|
(Identifier)
|
||||||
|
(Identifier))
|
||||||
|
(Call
|
||||||
|
(MemberAccess
|
||||||
|
(Identifier))
|
||||||
|
(Empty))
|
||||||
|
(Statements
|
||||||
|
(AssertStatement
|
||||||
|
(Equal
|
||||||
|
(Identifier)
|
||||||
|
(Null))))))))))
|
12
test/fixtures/java/corpus/AssertStatement.parseB.txt
vendored
Normal file
12
test/fixtures/java/corpus/AssertStatement.parseB.txt
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
(Statements
|
||||||
|
(Class
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
(Method
|
||||||
|
(Void)
|
||||||
|
(Empty)
|
||||||
|
(Identifier)
|
||||||
|
(Statements
|
||||||
|
(AssertStatement
|
||||||
|
(Identifier)
|
||||||
|
(TextElement)))))))
|
Loading…
Reference in New Issue
Block a user