selector unit test fixups for itemcount #831

pull/832/head
nick black 4 years ago
parent ab2710cf7a
commit 4ecee49777
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -76,6 +76,7 @@ TEST_CASE("Selectors") {
{ strdup("op1"), strdup("this is option 1"), 0, 0, },
{ strdup("2ndop"), strdup("this is option #2"), 0, 0, },
{ strdup("tres"), strdup("option the third"), 0, 0, },
{ NULL, NULL, 0, 0, },
};
struct ncselector_options opts{};
opts.items = items;
@ -112,6 +113,7 @@ TEST_CASE("Selectors") {
{ strdup("op1"), strdup("this is option 1"), 0, 0, },
{ strdup("2ndop"), strdup("this is option #2"), 0, 0, },
{ strdup("tres"), strdup("option the third"), 0, 0, },
{ NULL, NULL, 0, 0, },
};
struct ncselector_options opts{};
opts.items = items;
@ -148,6 +150,7 @@ TEST_CASE("Selectors") {
{ strdup("op1"), strdup("this is option 1"), 0, 0, },
{ strdup("2ndop"), strdup("this is option #2"), 0, 0, },
{ strdup("tres"), strdup("option the third"), 0, 0, },
{ NULL, NULL, 0, 0, },
};
struct ncselector_options opts{};
opts.maxdisplay = 1;
@ -190,6 +193,7 @@ TEST_CASE("Selectors") {
{ strdup("op1"), strdup("this is option 1"), 0, 0, },
{ strdup("2ndop"), strdup("this is option #2"), 0, 0, },
{ strdup("tres"), strdup("option the third"), 0, 0, },
{ NULL, NULL, 0, 0, },
};
struct ncselector_options opts{};
opts.maxdisplay = 2;

Loading…
Cancel
Save