FFPlatform: only add a path to data dirs if the path exits

This commit is contained in:
李通洲
2023-06-29 10:31:20 +08:00
committed by 李通洲
parent 4c7036a2ce
commit 13f58f5f1b
6 changed files with 80 additions and 74 deletions
+6
View File
@@ -87,6 +87,12 @@ int main(void)
n = 999;
VERIFY(ffListFirstIndexComp(&list, &n, numEqualsAdapter) == list.length);
// ffListContains
n = 10;
VERIFY(ffListContains(&list, &n, numEqualsAdapter));
n = 999;
VERIFY(!ffListContains(&list, &n, numEqualsAdapter));
//shift
VERIFY(ffListShift(&list, &n));
VERIFY(n == 1);