/* * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include TEST_CASE(pow) { EXPECT_EQ(AK::pow(10, 0), 1ull); EXPECT_EQ(AK::pow(10, 1), 10ull); EXPECT_EQ(AK::pow(10, 2), 100ull); EXPECT_EQ(AK::pow(10, 3), 1'000ull); EXPECT_EQ(AK::pow(10, 4), 10'000ull); EXPECT_EQ(AK::pow(10, 5), 100'000ull); EXPECT_EQ(AK::pow(10, 6), 1'000'000ull); }