/* * Copyright (c) 2018-2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include TEST_CASE(construct) { EXPECT(FixedArray().size() == 0); } TEST_CASE(ints) { FixedArray ints(3); ints[0] = 0; ints[1] = 1; ints[2] = 2; EXPECT_EQ(ints[0], 0); EXPECT_EQ(ints[1], 1); EXPECT_EQ(ints[2], 2); ints.clear(); EXPECT_EQ(ints.size(), 0u); }