Add tests for normal cases of maxOf/minOf

This commit is contained in:
Ilya Gorbunov
2016-12-27 07:18:54 +03:00
parent eb07d9407d
commit 6041a7d6c8
2 changed files with 38 additions and 0 deletions
@@ -136,6 +136,7 @@ fun comparables(): List<GenericFunction> {
bodyForTypes(Primitives, PrimitiveType.Byte, PrimitiveType.Short) { p ->
"return Math.min(a.toInt(), b.toInt()).to$p()"
}
// TODO: custom body for JS minOf(Long, Long)
body(Primitives) {
"return Math.min(a, b)"
}