diff --git a/src/tests/util/list.cpp b/src/tests/util/list.cpp index 34762eafe0..92133cdf98 100644 --- a/src/tests/util/list.cpp +++ b/src/tests/util/list.cpp @@ -75,11 +75,24 @@ static void tst5() { } } +static void tst6() { + lean_assert(list(10) == list{10}); +} + +static void tst7() { + list l{10, 20}; + list l2(30, l); + list l3(30, l); + lean_assert(l2 == l3); +} + int main() { tst1(); tst2(); tst3(); tst4(); tst5(); + tst6(); + tst7(); return has_violations() ? 1 : 0; }