25-Add more tests for floats

This commit is contained in:
Marvin Kaiser
2020-03-05 07:58:16 +01:00
parent 229920946d
commit 58cdaf04dd
5 changed files with 148 additions and 10 deletions

View File

@@ -395,6 +395,20 @@ function t8(): int {
return (1 + 5) * 3;
}
function mixadd(x: float, y: int): float {
return x + y;
}
function mixsub(x: float, y: int): float {
return x - y;
}
function mixmul(x: float, y: int): float {
return x * y;
}
function mixdiv(x: float, y: int): float {
return x / y;
}
add(1, 1);