blob: 181984db47310ebe8d0697015df6dd6c39c5a0e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <library/cpp/testing/unittest/registar.h>
#include <library/cpp/resource/resource.h>
Y_UNIT_TEST_SUITE(Www) {
Y_UNIT_TEST(messagebus_js) {
auto str = NResource::Find("/messagebus.js");
UNIT_ASSERT(str.Contains("logTransform"));
UNIT_ASSERT(str.Contains("plotHist"));
}
Y_UNIT_TEST(busico_png) {
auto str = NResource::Find("/bus-ico.png");
UNIT_ASSERT(str.Contains("PNG")); //header
}
Y_UNIT_TEST(not_exist) {
UNIT_ASSERT_EXCEPTION(NResource::Find("/not_exist"), yexception);
}
}
|