ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=428136e0f1cdd1aaa7bcae97ab580d5da2c7cff4

commit 428136e0f1cdd1aaa7bcae97ab580d5da2c7cff4
Author: Andy Williams <[email protected]>
Date:   Mon Nov 28 01:19:21 2016 +0000

    elm_code: Add some missing indent tests
---
 src/tests/elementary/elm_code_test_indent.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/tests/elementary/elm_code_test_indent.c 
b/src/tests/elementary/elm_code_test_indent.c
index cf03fa0..beed282 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
 

-- 


Reply via email to