33-- For any bugs, please first consider reporting there.
44---- ------------------------------------
55
6- local NVIM9 = require (" _vim9script" )
7- describe (" filename" , function ()
6+ local NVIM9 = require (' _vim9script' )
7+ describe (' filename' , function ()
88 -- vim9script
99
10- it (" Test_default_args" , function ()
10+ it (' Test_default_args' , function ()
1111 -- Set errors to empty
1212 vim .v .errors = {}
1313
@@ -18,59 +18,59 @@ describe("filename", function()
1818 return x
1919 end
2020
21- NVIM9 .fn [" assert_equal" ](MyCoolFunc (), 5 )
22- NVIM9 .fn [" assert_equal" ](MyCoolFunc (10 ), 10 )
21+ NVIM9 .fn [' assert_equal' ](MyCoolFunc (), 5 )
22+ NVIM9 .fn [' assert_equal' ](MyCoolFunc (10 ), 10 )
2323
2424 -- Assert that errors is still empty
2525 assert .are .same ({}, vim .v .errors )
2626 end )
2727
28- it (" Test_inplace" , function ()
28+ it (' Test_inplace' , function ()
2929 -- Set errors to empty
3030 vim .v .errors = {}
3131
3232 -- Actual test
3333 local explicit = { 3 , 2 , 1 }
34- explicit = NVIM9 .fn_mut (" sort" , { explicit }, { replace = 0 })
35- NVIM9 .fn [" assert_equal" ]({ 1 , 2 , 3 }, explicit )
34+ explicit = NVIM9 .fn_mut (' sort' , { explicit }, { replace = 0 })
35+ NVIM9 .fn [' assert_equal' ]({ 1 , 2 , 3 }, explicit )
3636
3737 local inplace = { 3 , 2 , 1 }
38- NVIM9 .fn_mut (" sort" , { inplace }, { replace = 0 })
39- NVIM9 .fn [" assert_equal" ]({ 1 , 2 , 3 }, inplace )
38+ NVIM9 .fn_mut (' sort' , { inplace }, { replace = 0 })
39+ NVIM9 .fn [' assert_equal' ]({ 1 , 2 , 3 }, inplace )
4040
41- local expr_sort = NVIM9 .fn [" sort" ]({ 3 , 2 , 1 })
42- NVIM9 .fn [" sort" ]({ 3 , 2 , 1 })
43- NVIM9 .fn [" assert_equal" ]({ 1 , 2 , 3 }, expr_sort )
41+ local expr_sort = NVIM9 .fn [' sort' ]({ 3 , 2 , 1 })
42+ NVIM9 .fn [' sort' ]({ 3 , 2 , 1 })
43+ NVIM9 .fn [' assert_equal' ]({ 1 , 2 , 3 }, expr_sort )
4444
4545 -- Assert that errors is still empty
4646 assert .are .same ({}, vim .v .errors )
4747 end )
4848
49- it (" Test_insert_inplace" , function ()
49+ it (' Test_insert_inplace' , function ()
5050 -- Set errors to empty
5151 vim .v .errors = {}
5252
5353 -- Actual test
5454 local foo = { 1 , 2 , 3 }
55- local bar = NVIM9 .fn [" insert" ](foo , 4 , NVIM9 .fn [" len" ](foo ))
56- NVIM9 .fn [" assert_equal" ](foo , bar )
55+ local bar = NVIM9 .fn [' insert' ](foo , 4 , NVIM9 .fn [' len' ](foo ))
56+ NVIM9 .fn [' assert_equal' ](foo , bar )
5757
58- NVIM9 .fn [" insert" ](bar , 5 , NVIM9 .fn [" len" ](bar ))
59- NVIM9 .fn [" assert_equal" ]({ 1 , 2 , 3 , 4 , 5 }, bar )
60- NVIM9 .fn [" assert_equal" ](foo , bar )
58+ NVIM9 .fn [' insert' ](bar , 5 , NVIM9 .fn [' len' ](bar ))
59+ NVIM9 .fn [' assert_equal' ]({ 1 , 2 , 3 , 4 , 5 }, bar )
60+ NVIM9 .fn [' assert_equal' ](foo , bar )
6161
6262 -- Assert that errors is still empty
6363 assert .are .same ({}, vim .v .errors )
6464 end )
6565
66- it (" Test_insert_inplace" , function ()
66+ it (' Test_insert_inplace' , function ()
6767 -- Set errors to empty
6868 vim .v .errors = {}
6969
7070 -- Actual test
7171 local foo = { 1 , 3 , 2 }
72- NVIM9 .fn_mut (" reverse" , { NVIM9 .fn_mut (" sort" , { foo }, { replace = 0 }) }, { replace = 0 })
73- NVIM9 .fn [" assert_equal" ]({ 3 , 2 , 1 }, foo )
72+ NVIM9 .fn_mut (' reverse' , { NVIM9 .fn_mut (' sort' , { foo }, { replace = 0 }) }, { replace = 0 })
73+ NVIM9 .fn [' assert_equal' ]({ 3 , 2 , 1 }, foo )
7474
7575 -- Assert that errors is still empty
7676 assert .are .same ({}, vim .v .errors )
0 commit comments