Created
November 8, 2015 21:09
-
-
Save jonm/ba4a7cbd77b6fa4e451e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test(act_wizard, dsearch_simple_arg) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone appears!"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(arg, "Someone appears!"); | |
} | |
Test(act_wizard, dsearch_simple_tilde_arg) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone ~ appears!"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(arg, "Someone appears!"); | |
} | |
Test(act_wizard, dsearch_tilde_at_end_arg) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone appears!~"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(arg, "Someone appears!"); | |
} | |
Test(act_wizard, dsearch_tilde_N_simple_arg) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone ~N appears!"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(arg, "Someone $n appears!"); | |
} | |
Test(act_wizard, dsearch_tilde_H_simple_arg) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone ~H appears!"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(arg, "Someone $s appears!"); | |
} | |
Test(act_wizard, dsearch_double_tilde_arg) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone ~~ appears!"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(arg, "Someone appears!"); | |
} | |
Test(act_wizard, dsearch_double_substitution_arg) { | |
char arg[255], dst[255]; | |
sprintf(arg, "Someone ~N~N appears!"); | |
dsearch(arg, dst); | |
cr_assert_str_eq(arg, "Someone $n$n appears!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment