efl

Форк
0
/
eolian_mono_suite.cc 
61 строка · 1.6 Кб
1
/*
2
 * Copyright 2019 by its authors. See AUTHORS.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
#ifdef HAVE_CONFIG_H
18
#include <config.h>
19
#endif
20

21
#include "../../bin/eolian_mono/eolian/mono/utils.hh"
22

23
#include <check.h>
24
#include "../efl_check.h"
25

26

27

28
EFL_START_TEST(eolian_mono_test_util_ends_with)
29
{
30
  ck_assert(eolian_mono::utils::ends_with("SomeFlags", "Flags"));
31
  ck_assert(eolian_mono::utils::ends_with("Flags", "Flags"));
32
  ck_assert(!eolian_mono::utils::ends_with("Flagz", "Flags"));
33
  ck_assert(!eolian_mono::utils::ends_with("FlagsSome", "Flags"));
34
}
35
EFL_END_TEST
36

37
void
38
eolian_mono_utils_test(TCase* tc)
39
{
40
   tcase_add_test(tc, eolian_mono_test_util_ends_with);
41
}
42

43
static const Efl_Test_Case etc[] = {
44
  { "Eolian mono utils", eolian_mono_utils_test },
45
  { NULL, NULL }
46
};
47

48
int main(int argc, char *argv[])
49
{
50
   int failed_count;
51

52
   if (!_efl_test_option_disp(argc, argv, etc))
53
     return 0;
54

55
   putenv(const_cast<char*>("EFL_RUN_IN_TREE=1"));
56

57
   failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
58
                                           "Eolian C++", etc, NULL, NULL);
59

60
   return (failed_count == 0) ? 0 : 255;
61
}
62

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.