Deprecation of @assignable_to

This commit is contained in:
Christoffer Lerno
2025-08-26 13:21:42 +02:00
parent 1634217fc4
commit cb17cfff7d
18 changed files with 46 additions and 37 deletions

View File

@@ -669,6 +669,14 @@ fn void test_muldiv()
assert(k.muldiv(20,-10) == (ichar[<4>]){-40,-60,-80,-100});
}
fn void test_clamp()
{
test::eq(math::clamp(10, 2, 8), 8);
test::eq(math::clamp(1, 2, 8), 2);
test::eq(math::clamp(10.2, 2.3, 8.7), 8.7);
test::eq(math::clamp(1.0, 2.3, 8.7), 2.3);
}
fn void test_gcd() @test
{
assert(math::gcd(20,15) == 5);