diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-10-24 01:50:20 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-10-24 02:08:36 +0300 |
commit | 39357888f3f58ba16af3b31c8386cb1dd46b0c7b (patch) | |
tree | 75e3d2d6b4190b922e45de1124e38b70d610280e /util/system | |
parent | cc78b961ed847896c5d94fc564556e2db812df70 (diff) | |
download | ydb-39357888f3f58ba16af3b31c8386cb1dd46b0c7b.tar.gz |
Intermediate changes
Diffstat (limited to 'util/system')
-rw-r--r-- | util/system/yassert_ut.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/system/yassert_ut.cpp b/util/system/yassert_ut.cpp index 6c5e10ff25..701da9bf6c 100644 --- a/util/system/yassert_ut.cpp +++ b/util/system/yassert_ut.cpp @@ -32,4 +32,10 @@ Y_UNIT_TEST_SUITE(YassertTest) { Y_ABORT_UNLESS(true, "hi %s", "there"); Y_ABORT_UNLESS(true); } + + Y_UNIT_TEST(TestExceptionVerify) { + UNIT_ASSERT_EXCEPTION( + []() { Y_ABORT_UNLESS([]() {throw yexception{} << "check"; return false; }(), "hi %s", "there"); }(), + yexception); + } } |