aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test-str-expand.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-03-17 10:36:23 -0800
committerDavid M. Syzdek <david@syzdek.net>2022-03-17 10:36:23 -0800
commit8899976e120d8b8de910759e7a397c6fcd0e1ce8 (patch)
tree52fa691a60bafc51b42a73138ca42d04e6c5b451 /tests/test-str-expand.c
parentb5dca635ed43b86d566c883b6f14cae729239671 (diff)
downloadtinyrad-8899976e120d8b8de910759e7a397c6fcd0e1ce8.tar.gz
tinyrad-8899976e120d8b8de910759e7a397c6fcd0e1ce8.tar.bz2
tinyrad-8899976e120d8b8de910759e7a397c6fcd0e1ce8.tar.xz
tinyrad-8899976e120d8b8de910759e7a397c6fcd0e1ce8.zip
libtinyrad: updating test strings in test-str-expand
Diffstat (limited to 'tests/test-str-expand.c')
-rw-r--r--tests/test-str-expand.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/tests/test-str-expand.c b/tests/test-str-expand.c
index 44c4816..edcc71d 100644
--- a/tests/test-str-expand.c
+++ b/tests/test-str-expand.c
@@ -89,19 +89,20 @@ typedef struct my_test_strings
89 89
90static const MyTestStr test_strings[] = 90static const MyTestStr test_strings[] =
91{ 91{
92 { "asdfghj", "asdfghj", TRAD_NO }, 92 { "asdfghj", "asdfghj", TRAD_NO },
93 { "'asdfghj'", "asdfghj", TRAD_NO }, 93 { "'asdfghj'", "asdfghj", TRAD_NO },
94 { "\"asdfghj\"", "asdfghj", TRAD_NO }, 94 { "\"asdfghj\"", "asdfghj", TRAD_NO },
95 { "\"\\141\\163\\144\\146\\147\\150\\152\"", "asdfghj", TRAD_NO }, 95 { "\\141\\163\\144\\146\\147\\150\\152", "asdfghj", TRAD_YES },
96 { "\"\\x61\\x73\\x64\\x66\\x67\\x68\\x6a\"", "asdfghj", TRAD_NO }, 96 { "\\x61\\x73\\x64\\x66\\x67\\x68\\x6a", "asdfghj", TRAD_YES },
97 { "\"a\\163\\x64f\\147\\x68j\"", "asdfghj", TRAD_NO }, 97 { "a\\163\\x64f\\147\\x68j", "asdfghj", TRAD_YES },
98 { "\"a%%sdfghj\"", "a%sdfghj", TRAD_NO }, 98 { "a%%sdfghj", "a%sdfghj", TRAD_YES },
99 { "\"%u:x:%U:%G:test user:%d:/bin/false\"", NULL, TRAD_NO }, 99 { "zaq%%-%p-%%qaz", "zaq%-tinyrad-str-expand-%qaz", TRAD_YES },
100 { "\"%g:x:%G:%u,root\"", NULL, TRAD_NO }, 100 { "%u:x:%U:%G:test user:%d:/bin/false", NULL, TRAD_YES },
101 { "\"Is %p running successfully?\"", NULL, TRAD_NO }, 101 { "%g:x:%G:%u,root", NULL, TRAD_YES },
102 { "\"Is your email address %u@%D\?\"", NULL, TRAD_NO }, 102 { "Is %p running successfully?", NULL, TRAD_YES },
103 { "\"is your email address %u@%H\?\"", NULL, TRAD_NO }, 103 { "Is your email address %u@%D\?", NULL, TRAD_YES },
104 { "\"Is your email address %u@%h.%D\?\"", NULL, TRAD_NO }, 104 { "is your email address %u@%H\?", NULL, TRAD_YES },
105 { "Is your email address %u@%h.%D\?", NULL, TRAD_YES },
105 { NULL, NULL, 0 } 106 { NULL, NULL, 0 }
106}; 107};
107 108