tests: added eqeq test

tests: sum-test: emproved test sum of int with various types of second argument (byte, short and etc)
tests: hello2 minor fix in test
This commit is contained in:
Konstantin Anisimov
2016-11-08 18:32:29 +03:00
committed by vvlevchenko
parent 265f688425
commit a910627357
6 changed files with 56 additions and 7 deletions
+8 -1
View File
@@ -1 +1,8 @@
fun sum(a:Int, b:Int) = a + b
fun sumIB(a:Int, b:Byte ) = a + b
fun sumIS(a:Int, b:Short ) = a + b
fun sumII(a:Int, b:Int ) = a + b
fun sumIL(a:Int, b:Long ) = a + b
fun sumIF(a:Int, b:Float ) = a + b
fun sumID(a:Int, b:Double) = a + b
fun modID(a:Int, b:Double) = a % b