Changeset b3c169e6 in mainline for uspace/lib/conf/test/ini.c
- Timestamp:
- 2020-07-05T22:01:59Z (4 years ago)
- Parents:
- 6efe1b78
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2020-03-14 15:32:12)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2020-07-05 22:01:59)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/conf/test/ini.c
r6efe1b78 rb3c169e6 39 39 static text_parse_t parse; 40 40 41 PCUT_TEST_BEFORE { 41 PCUT_TEST_BEFORE 42 { 42 43 ini_configuration_init(&ini_conf); 43 44 text_parse_init(&parse); 44 45 } 45 46 46 PCUT_TEST_AFTER { 47 PCUT_TEST_AFTER 48 { 47 49 text_parse_deinit(&parse); 48 50 ini_configuration_deinit(&ini_conf); 49 51 } 50 52 51 PCUT_TEST(simple_parsing) { 53 PCUT_TEST(simple_parsing) 54 { 52 55 const char *data = 53 56 "[Section]\n" … … 68 71 } 69 72 70 PCUT_TEST(default_section) { 73 PCUT_TEST(default_section) 74 { 71 75 const char *data = 72 76 "key = value\n" … … 86 90 } 87 91 88 PCUT_TEST(multikey) { 92 PCUT_TEST(multikey) 93 { 89 94 const char *data = 90 95 "key = value\n" … … 114 119 } 115 120 116 PCUT_TEST(dup_section) { 121 PCUT_TEST(dup_section) 122 { 117 123 const char *data = 118 124 "[Section]\n" … … 133 139 } 134 140 135 PCUT_TEST(empty_section) { 141 PCUT_TEST(empty_section) 142 { 136 143 const char *data = 137 144 "[Section1]\n"
Note:
See TracChangeset
for help on using the changeset viewer.