Changeset 3bacee1 in mainline for uspace/app/bdsh/test/toktest.c
- Timestamp:
- 2018-04-12T16:27:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/test/toktest.c
r76d0981d r3bacee1 43 43 44 44 /* Tokenize the input, asserts that number of tokens is okay. */ 45 static void prepare(const char *input, size_t expected_token_count) { 45 static void prepare(const char *input, size_t expected_token_count) 46 { 46 47 str_cpy(input_buffer, MAX_INPUT, input); 47 48 … … 68 69 PCUT_TEST_SUITE(tokenizer); 69 70 70 PCUT_TEST_AFTER { 71 PCUT_TEST_AFTER 72 { 71 73 /* Destroy the tokenizer. */ 72 74 tok_fini(&tokenizer); … … 74 76 75 77 76 PCUT_TEST(empty_input) { 78 PCUT_TEST(empty_input) 79 { 77 80 prepare("", 0); 78 81 } 79 82 80 PCUT_TEST(only_spaces) { 83 PCUT_TEST(only_spaces) 84 { 81 85 prepare(" ", 1); 82 86 … … 84 88 } 85 89 86 PCUT_TEST(two_text_tokens) { 90 PCUT_TEST(two_text_tokens) 91 { 87 92 prepare("alpha bravo", 3); 88 93
Note:
See TracChangeset
for help on using the changeset viewer.