mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
Tests/AK: Add a test for the array ctor deduction guide
This commit is contained in:
parent
d84b69ace9
commit
986872800e
|
@ -19,7 +19,7 @@ static constexpr int constexpr_sum(ReadonlySpan<int> const span)
|
||||||
|
|
||||||
TEST_CASE(compile_time_constructible)
|
TEST_CASE(compile_time_constructible)
|
||||||
{
|
{
|
||||||
constexpr Array<int, 4> array = { 0, 1, 2, 3 };
|
constexpr Array array = { 0, 1, 2, 3 };
|
||||||
static_assert(array.size() == 4);
|
static_assert(array.size() == 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue