aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/nondestroying_holder_ut.cpp
blob: 890dbc7b11fa2f533b37cca0ecc6d2a1f3b06e17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <library/cpp/testing/unittest/registar.h>
 
#include "nondestroying_holder.h" 
 
Y_UNIT_TEST_SUITE(TNonDestroyingHolder) {
    Y_UNIT_TEST(ToAutoPtr) {
        TNonDestroyingHolder<int> h(new int(11)); 
        TAutoPtr<int> i(h); 
        UNIT_ASSERT_VALUES_EQUAL(11, *i); 
        UNIT_ASSERT(!h); 
    } 
}