diff options
| author | 2025-09-11 09:32:50 -0400 | |
|---|---|---|
| committer | 2025-09-11 09:32:50 -0400 | |
| commit | 98ffb7841e95dfa530bc19fe5946b814d77cdde9 (patch) | |
| tree | 290d88f5a0fd49fce0d84816376ece9a94a2c6b1 /tests | |
| parent | ed6fc176a1ef6afd43eaa198c43eb813c3a81d99 (diff) | |
| download | libalabaster-98ffb7841e95dfa530bc19fe5946b814d77cdde9.tar.gz libalabaster-98ffb7841e95dfa530bc19fe5946b814d77cdde9.tar.bz2 libalabaster-98ffb7841e95dfa530bc19fe5946b814d77cdde9.zip | |
tests: Fix left over usage of NPOS in str test
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/str.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |