diff options
author | Andy Williams <andy@andywilliams.me> | 2016-11-28 01:19:21 +0000 |
---|---|---|
committer | Andy Williams <andy@andywilliams.me> | 2016-11-28 01:19:21 +0000 |
commit | 428136e0f1cdd1aaa7bcae97ab580d5da2c7cff4 (patch) | |
tree | bfdc9256958da10b11ba6a5ee5600d8a4f3c3ed9 | |
parent | 60cd21979228482a6245f03d8110aafa2810f5d6 (diff) | |
download | efl-428136e0f1cdd1aaa7bcae97ab580d5da2c7cff4.tar.gz |
elm_code: Add some missing indent tests
-rw-r--r-- | src/tests/elementary/elm_code_test_indent.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_code_test_indent.c b/src/tests/elementary/elm_code_test_indent.c index cf03fa08e2..beed282783 100644 --- a/src/tests/elementary/elm_code_test_indent.c +++ b/src/tests/elementary/elm_code_test_indent.c @@ -31,8 +31,16 @@ START_TEST (elm_code_indent_comments_test) ck_assert_str_eq(" * ", str); str = elm_code_line_indent_get(" * ", 4); ck_assert_str_eq(" * ", str); + str = elm_code_line_indent_get(" */", 4); + ck_assert_str_eq(" ", str); str = elm_code_line_indent_get("\t//", 3); ck_assert_str_eq("\t//", str); + + // test these are not comments + str = elm_code_line_indent_get(" / ", 3); + ck_assert_str_eq(" ", str); + str = elm_code_line_indent_get(" hi//", 5); + ck_assert_str_eq(" ", str); } END_TEST |