TEST: convertion unit tests into run tests

This commit is contained in:
Vasily Levchenko
2016-12-27 13:02:00 +03:00
committed by vvlevchenko
parent 7fd4b4fe34
commit 3fe59cc46c
56 changed files with 188 additions and 411 deletions
+26 -1
View File
@@ -21,4 +21,29 @@ fun leF (a:Float, b:Float ) = a <= b
fun neF (a:Float, b:Float ) = a != b
fun helloString() = "Hello"
fun goodbyeString() = "Goodbye"
fun goodbyeString() = "Goodbye"
fun main(args: Array<String>) {
if (!eqeqB(3 , 3 )) throw Error()
if (!eqeqS(3 , 3 )) throw Error()
if (!eqeqI(3 , 3 )) throw Error()
if (!eqeqL(3L , 3L )) throw Error()
if (!eqeqF(3.0f, 3.0f)) throw Error()
if (!eqeqD(3.0 , 3.0 )) throw Error()
if (!eqeqStr(helloString(), helloString())) throw Error()
if (!eqeqeq(helloString(), helloString())) throw Error()
if (eqeqeq(helloString(), goodbyeString())) throw Error()
if (gtI (2 , 3 )) throw Error()
if (ltI (3 , 2 )) throw Error()
if (geI (2 , 3 )) throw Error()
if (leI (3 , 2 )) throw Error()
if (neI (2 , 2 )) throw Error()
if (gtF (2.0f , 3.0f )) throw Error()
if (ltF (3.0f , 2.0f )) throw Error()
if (geF (2.0f , 3.0f )) throw Error()
if (leF (3.0f , 2.0f )) throw Error()
if (neF (2.0f , 2.0f )) throw Error()
}