diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-01-26 13:47:29 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-01-26 13:47:29 -0900 |
| commit | 6baa160be5c29234fd1b26804026285f2c0dde7a (patch) | |
| tree | 3f828224cc42b718a8fa2bf6e78ae43958a251b2 /tests | |
| parent | cffa964f262d176776ce34b7befa34abfa70dcd3 (diff) | |
| download | tinyrad-6baa160be5c29234fd1b26804026285f2c0dde7a.tar.gz tinyrad-6baa160be5c29234fd1b26804026285f2c0dde7a.tar.bz2 tinyrad-6baa160be5c29234fd1b26804026285f2c0dde7a.tar.xz tinyrad-6baa160be5c29234fd1b26804026285f2c0dde7a.zip | |
libtinyrad: renaming TINYRAD_ARRAY_FIRST to TINYRAD_ARRAY_FIRSTDUP
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-array-sorted.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-array-sorted.c b/tests/test-array-sorted.c index 4ac4719..d352054 100644 --- a/tests/test-array-sorted.c +++ b/tests/test-array-sorted.c | |||
| @@ -794,7 +794,7 @@ my_test_search( | |||
| 794 | default: | 794 | default: |
| 795 | return(our_error(opts, "unknown key")); | 795 | return(our_error(opts, "unknown key")); |
| 796 | }; | 796 | }; |
| 797 | if ((idx = tinyrad_array_search(list, x, sizeof(MyData *), ptr, TINYRAD_ARRAY_FIRST, NULL, compar)) == -1) | 797 | if ((idx = tinyrad_array_search(list, x, sizeof(MyData *), ptr, TINYRAD_ARRAY_FIRSTDUP, NULL, compar)) == -1) |
| 798 | return(our_error(opts, "tinyrad_array_search(); size: %zu; func: %s; idx: %zu; search error", x, compar_name, y)); | 798 | return(our_error(opts, "tinyrad_array_search(); size: %zu; func: %s; idx: %zu; search error", x, compar_name, y)); |
| 799 | if ((size_t)idx != y) | 799 | if ((size_t)idx != y) |
| 800 | return(our_error(opts, "tinyrad_array_search(); size: %zu; func: %s; idx: %zu; index mismatch", x, compar_name, y)); | 800 | return(our_error(opts, "tinyrad_array_search(); size: %zu; func: %s; idx: %zu; index mismatch", x, compar_name, y)); |
| @@ -815,7 +815,7 @@ my_test_search( | |||
| 815 | default: | 815 | default: |
| 816 | return(our_error(opts, "unknown key")); | 816 | return(our_error(opts, "unknown key")); |
| 817 | }; | 817 | }; |
| 818 | if ((res = tinyrad_array_get(list, x, sizeof(MyData *), ptr, TINYRAD_ARRAY_FIRST, compar)) == NULL) | 818 | if ((res = tinyrad_array_get(list, x, sizeof(MyData *), ptr, TINYRAD_ARRAY_FIRSTDUP, compar)) == NULL) |
| 819 | return(our_error(opts, "tinyrad_array_get(); size: %zu; func: %s; idx: %zu; search error", x, compar_name, y)); | 819 | return(our_error(opts, "tinyrad_array_get(); size: %zu; func: %s; idx: %zu; search error", x, compar_name, y)); |
| 820 | if ((strcasecmp((*res)->name, list[y]->name))) | 820 | if ((strcasecmp((*res)->name, list[y]->name))) |
| 821 | return(our_error(opts, "tinyrad_array_get(); size: %zu; func: %s; idx: %zu; result name does not match", x, compar_name, y)); | 821 | return(our_error(opts, "tinyrad_array_get(); size: %zu; func: %s; idx: %zu; result name does not match", x, compar_name, y)); |
