diff options
| -rw-r--r-- | meson.build | 2 | ||||
| -rw-r--r-- | tests/str.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 849aec6..285af45 100644 --- a/meson.build +++ b/meson.build @@ -74,7 +74,7 @@ alabaster = declare_dependency(include_directories: alabaster_inc, dependencies: alabaster_deps, sources: alabaster_src, compile_args: alabaster_args) -if get_option('tests').allowed() and not meson.is_subproject() +if get_option('tests').allowed() tests_src = [ 'tests/main.c', 'tests/lib.c', diff --git a/tests/str.c b/tests/str.c index 03284d6..e961ee9 100644 --- a/tests/str.c +++ b/tests/str.c @@ -92,10 +92,10 @@ static bool str_test_find_rfind(void) AL_TEST_EQ(al_str_find(&string0, '\\'), 7, u32); AL_TEST_EQ(al_str_rfind(&string0, '\\'), 10, u32); - AL_TEST_EQ(al_str_find(&string0, 'P'), AL_STR_NPOS, u32); + AL_TEST_EQ(al_str_find(&string0, 'P'), AL_STR_NO_POS, u32); AL_TEST_EQ(al_str_find_str(&string0, &al_str_c("wow\\")), 4, u32); - AL_TEST_EQ(al_str_find_str(&string0, &al_str_c("John\\")), AL_STR_NPOS, u32); + AL_TEST_EQ(al_str_find_str(&string0, &al_str_c("John\\")), AL_STR_NO_POS, u32); AL_TEST_END(); } |