Uast: Update tests, make the tests a bit more readable (provide toString() methods for Uast kinds)

This commit is contained in:
Yan Zhulanow
2016-03-24 17:11:28 +03:00
parent 109c76c87d
commit 3484f92d10
29 changed files with 454 additions and 105 deletions
+23 -23
View File
@@ -1,68 +1,68 @@
default class _Dummy_ {
default inner class SpecialExpressions {
default class SpecialExpressions {
default fun test(): boolean {
assert 5 > 3 : EmptyExpression
assert 5 > 3 : "Message"
synchronized this : {
System.out.println("A")
}
var a: int = 5
var b: int = 7
var c: int
while (a > 0) {
if (a === 3) {
break
break
}
if (a % 5 === 0) {
continue
continue
}
a--
}
this.test()
super.hashCode()
var x: String
switch (a)
{
case 1:
1 ->
{
x = "1"
break
break
}
case 3:
3 ->
x = "3"
case 4:
4 ->
x = "4"
else:
else ->
x = ""
}
if (System.getProperty("abc", "").equals("1")) {
throw <noref>("Err")
throw AssertionError("Err")
}
try {
Thread.sleep(1000)
}
catch (e) {
}
finally {
a = 3
}
{
a = 5
}
return true
}
}
}
}