aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/resource/ut/resource_ut.cpp
blob: 67cf77c5713e0ef33ffacac7f4ceeb93ac2221c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <library/cpp/resource/resource.h>
#include <library/cpp/testing/unittest/registar.h>

Y_UNIT_TEST_SUITE(TestResource) {
    Y_UNIT_TEST(Test1) {
        UNIT_ASSERT_VALUES_EQUAL(NResource::Find("/x"), "na gorshke sidel korol\n");
    }

    Y_UNIT_TEST(TestHasFunc) {
        UNIT_ASSERT_VALUES_EQUAL(NResource::Has("/x"), true);
        UNIT_ASSERT_VALUES_EQUAL(NResource::Has("/y"), false);
    }
}