diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/core.cpp b/tests/core.cpp index e8d106b..eb315e5 100644 --- a/tests/core.cpp +++ b/tests/core.cpp @@ -45,6 +45,9 @@ SAW_TEST("ID Map Insert"){ auto eov = map.erase(id); SAW_EXPECT(eov.is_value(), "Erase failed"); + + auto eov_2 = map.erase(id); + SAW_EXPECT(eov_2.is_error(), "This is a double free"); } } } |