mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 08:44:20 +03:00
Исправлены тесты
This commit is contained in:
parent
c82114d34a
commit
7711170601
@ -39,7 +39,7 @@ def testInvokeMethodSameName() {
|
|||||||
|
|
||||||
def createObject() {
|
def createObject() {
|
||||||
dataClass = newClass("interop.Data")
|
dataClass = newClass("interop.Data")
|
||||||
return dataClass.new()
|
return dataClass.`new`()
|
||||||
}
|
}
|
||||||
|
|
||||||
def assertObjectArray(obj) {
|
def assertObjectArray(obj) {
|
||||||
|
@ -6,7 +6,7 @@ def testTryOnly() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def testCatchFunction() {
|
def testCatchFunction() {
|
||||||
actual = try(def() = parseInt("oops"), def(class, cause) = class)
|
actual = try(def() = parseInt("oops"), def(clazz, cause) = clazz)
|
||||||
assertEquals("java.lang.NumberFormatException", actual)
|
assertEquals("java.lang.NumberFormatException", actual)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user