[gtksourceview/wip/chergert/vim: 287/363] add more tests
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim: 287/363] add more tests
- Date: Mon, 8 Nov 2021 19:53:54 +0000 (UTC)
commit a15679a5937a588e8523dad03eb30aac0b40fa94
Author: Christian Hergert <chergert redhat com>
Date: Thu Nov 4 21:55:55 2021 -0700
add more tests
testsuite/test-vim-text-object.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/testsuite/test-vim-text-object.c b/testsuite/test-vim-text-object.c
index 031f58fc..7320ccd9 100644
--- a/testsuite/test-vim-text-object.c
+++ b/testsuite/test-vim-text-object.c
@@ -78,7 +78,12 @@ test_word (void)
run_test (gtk_source_vim_text_object_new_inner_word (), "something here", 9, " ", FALSE);
run_test (gtk_source_vim_text_object_new_inner_word (), "a", 0, "a", FALSE);
run_test (gtk_source_vim_text_object_new_inner_word (), "a b", 1, " ", FALSE);
+ run_test (gtk_source_vim_text_object_new_inner_word (), "+ -", 1, " ", FALSE);
+ run_test (gtk_source_vim_text_object_new_inner_word (), "z a", 2, "a", FALSE);
run_test (gtk_source_vim_text_object_new_a_word (), "a b", 1, " b", FALSE);
+ run_test (gtk_source_vim_text_object_new_a_word (), "+ -", 1, " -", FALSE);
+ run_test (gtk_source_vim_text_object_new_a_word (), "a b", 2, "b", FALSE);
+ //run_test (gtk_source_vim_text_object_new_a_word (), "a b c", 2, "b ", FALSE);
}
static void
@@ -112,6 +117,11 @@ test_block (void)
run_test (gtk_source_vim_text_object_new_a_block_paren (), "(m)", 1, "(m)", FALSE);
run_test (gtk_source_vim_text_object_new_a_block_paren (), "(m)", 2, "(m)", FALSE);
run_test (gtk_source_vim_text_object_new_inner_block_paren (), "(m)", 3, NULL, TRUE);
+ run_test (gtk_source_vim_text_object_new_inner_block_paren (), "()", 2, NULL, TRUE);
+ run_test (gtk_source_vim_text_object_new_inner_block_paren (), "()", 1, "", FALSE);
+ run_test (gtk_source_vim_text_object_new_inner_block_paren (), "()", 0, "", FALSE);
+ run_test (gtk_source_vim_text_object_new_a_block_paren (), "() ", 1, "()", FALSE);
+ run_test (gtk_source_vim_text_object_new_a_block_paren (), "() ", 0, "()", FALSE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]