@@ -536,6 +536,8 @@ func Test_digraph_set_function()
536536 call assert_fails (' call digraph_set("あ", "あ")' , ' E1214: Digraph must be just two characters: あ' )
537537 call assert_fails (' call digraph_set("aa", "ああ")' , ' E1215: Digraph must be one character: ああ' )
538538 call assert_fails (' call digraph_set("aa", "か" .. nr2char(0x3099))' , ' E1215: Digraph must be one character: か' .. nr2char (0x3099 ))
539+ call assert_fails (' call digraph_set(test_null_string(), "い")' , ' E1214: Digraph must be just two characters' )
540+ call assert_fails (' call digraph_set("aa", 0z10)' , ' E976: Using a Blob as a String' )
539541 bwipe!
540542endfunc
541543
@@ -553,6 +555,8 @@ func Test_digraph_get_function()
553555 call assert_equal (' う' , digraph_get (' ' ))
554556 call assert_fails (' call digraph_get("aaa")' , ' E1214: Digraph must be just two characters: aaa' )
555557 call assert_fails (' call digraph_get("b")' , ' E1214: Digraph must be just two characters: b' )
558+ call assert_fails (' call digraph_get(test_null_string())' , ' E1214: Digraph must be just two characters:' )
559+ call assert_fails (' call digraph_get(0z10)' , ' E976: Using a Blob as a String' )
556560endfunc
557561
558562func Test_digraph_get_function_encode ()
@@ -576,8 +580,12 @@ func Test_digraph_setlist_function()
576580 call assert_equal (' く' , digraph_get (' bb' ))
577581
578582 call assert_fails (' call digraph_setlist([[]])' , ' E1216:' )
579- call assert_fails (' call digraph_setlist([["aa", "b", "cc"]])' , ' 1216 :' )
583+ call assert_fails (' call digraph_setlist([["aa", "b", "cc"]])' , ' E1216 :' )
580584 call assert_fails (' call digraph_setlist([["あ", "あ"]])' , ' E1214: Digraph must be just two characters: あ' )
585+ call assert_fails (' call digraph_setlist([test_null_list()])' , ' E1216:' )
586+ call assert_fails (' call digraph_setlist({})' , ' E1216:' )
587+ call assert_fails (' call digraph_setlist([{}])' , ' E1216:' )
588+ call assert_true (digraph_setlist (test_null_list ()))
581589endfunc
582590
583591func Test_digraph_getlist_function ()
@@ -592,6 +600,8 @@ func Test_digraph_getlist_function()
592600 " of digraphs returned.
593601 call assert_equal (digraph_getlist ()- >len (), digraph_getlist (0 )- >len ())
594602 call assert_notequal ((digraph_getlist ()- >len ()), digraph_getlist (1 )- >len ())
603+
604+ call assert_fails (' call digraph_getlist(0z12)' , ' E974: Using a Blob as a Number' )
595605endfunc
596606
597607
0 commit comments