summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2016-11-28 01:19:21 +0000
committerAndy Williams <andy@andywilliams.me>2016-11-28 01:19:21 +0000
commit428136e0f1cdd1aaa7bcae97ab580d5da2c7cff4 (patch)
treebfdc9256958da10b11ba6a5ee5600d8a4f3c3ed9
parent60cd21979228482a6245f03d8110aafa2810f5d6 (diff)
downloadefl-428136e0f1cdd1aaa7bcae97ab580d5da2c7cff4.tar.gz
elm_code: Add some missing indent tests
-rw-r--r--src/tests/elementary/elm_code_test_indent.c8
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