diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2017-04-03 00:57:40 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2017-04-03 00:57:40 -0700 |
commit | 13b570bfbf67aecba53e92ec458ab510b4f93363 (patch) | |
tree | 697f0713d3daaee72a2f7158785c7d6b9caa111a | |
parent | 512b3a39ebc2325e4c13dd63ad9897ddd0737683 (diff) |
Correct argument order for ASSERT_STR_EQ
-rw-r--r-- | test/fzytest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fzytest.c b/test/fzytest.c index 109fbe3..de9f283 100644 --- a/test/fzytest.c +++ b/test/fzytest.c @@ -233,7 +233,7 @@ TEST test_choices_2() { choices_search(&choices, "te"); ASSERT(choices.available == 1); ASSERT(choices.selection == 0); - ASSERT_STR_EQ(choices_get(&choices, 0), "test"); + ASSERT_STR_EQ("test", choices_get(&choices, 0)); choices_next(&choices); ASSERT(choices.selection == 0); @@ -250,8 +250,8 @@ TEST test_choices_2() { choices_search(&choices, "ts"); ASSERT(choices.available == 2); ASSERT(choices.selection == 0); - ASSERT_STR_EQ(choices_get(&choices, 0), "test"); - ASSERT_STR_EQ(choices_get(&choices, 1), "tags"); + ASSERT_STR_EQ("test", choices_get(&choices, 0)); + ASSERT_STR_EQ("tags", choices_get(&choices, 1)); choices_destroy(&choices); @@ -310,7 +310,7 @@ TEST test_choices_large_input() { /* Must match `seq 0 99999 | grep '.*1.*2.*' | wc -l` */ ASSERT(choices.available == 8146); - ASSERT_STR_EQ(choices_get(&choices, 0), "12"); + ASSERT_STR_EQ("12", choices_get(&choices, 0)); for(int i = 0; i < N; i++) { free(strings[i]); |