diff options
Diffstat (limited to 'src/testdir/sautest/autoload')
-rw-r--r-- | src/testdir/sautest/autoload/Test104.vim | 1 | ||||
-rw-r--r-- | src/testdir/sautest/autoload/auto9.vim | 9 | ||||
-rw-r--r-- | src/testdir/sautest/autoload/foo.vim | 11 | ||||
-rw-r--r-- | src/testdir/sautest/autoload/footest.vim | 5 | ||||
-rw-r--r-- | src/testdir/sautest/autoload/globone.vim | 1 | ||||
-rw-r--r-- | src/testdir/sautest/autoload/globtwo.vim | 1 | ||||
-rw-r--r-- | src/testdir/sautest/autoload/sourced.vim | 4 |
7 files changed, 32 insertions, 0 deletions
diff --git a/src/testdir/sautest/autoload/Test104.vim b/src/testdir/sautest/autoload/Test104.vim new file mode 100644 index 0000000..d1e0e17 --- /dev/null +++ b/src/testdir/sautest/autoload/Test104.vim @@ -0,0 +1 @@ +let Test104#numvar = 123 diff --git a/src/testdir/sautest/autoload/auto9.vim b/src/testdir/sautest/autoload/auto9.vim new file mode 100644 index 0000000..c89ce3a --- /dev/null +++ b/src/testdir/sautest/autoload/auto9.vim @@ -0,0 +1,9 @@ +vim9script + +func auto9#getsome() + return 'some' +endfunc + +def auto9#add42(count: number): number + return count + 42 +enddef diff --git a/src/testdir/sautest/autoload/foo.vim b/src/testdir/sautest/autoload/foo.vim new file mode 100644 index 0000000..298e727 --- /dev/null +++ b/src/testdir/sautest/autoload/foo.vim @@ -0,0 +1,11 @@ +let g:loaded_foo_vim += 1 + +let foo#bar = {} + +func foo#bar.echo() + let g:called_foo_bar_echo += 1 +endfunc + +func foo#addFoo(head) + return a:head .. 'foo' +endfunc diff --git a/src/testdir/sautest/autoload/footest.vim b/src/testdir/sautest/autoload/footest.vim new file mode 100644 index 0000000..1e78963 --- /dev/null +++ b/src/testdir/sautest/autoload/footest.vim @@ -0,0 +1,5 @@ +" Autoload script used by test_listdict.vim, test_exists.vim and test_let.vim +let footest#x = 1 +func footest#F() + return 0 +endfunc diff --git a/src/testdir/sautest/autoload/globone.vim b/src/testdir/sautest/autoload/globone.vim new file mode 100644 index 0000000..98c9a10 --- /dev/null +++ b/src/testdir/sautest/autoload/globone.vim @@ -0,0 +1 @@ +" used by Test_globpath() diff --git a/src/testdir/sautest/autoload/globtwo.vim b/src/testdir/sautest/autoload/globtwo.vim new file mode 100644 index 0000000..98c9a10 --- /dev/null +++ b/src/testdir/sautest/autoload/globtwo.vim @@ -0,0 +1 @@ +" used by Test_globpath() diff --git a/src/testdir/sautest/autoload/sourced.vim b/src/testdir/sautest/autoload/sourced.vim new file mode 100644 index 0000000..aac96b1 --- /dev/null +++ b/src/testdir/sautest/autoload/sourced.vim @@ -0,0 +1,4 @@ +let g:loaded_sourced_vim += 1 +func sourced#something() +endfunc +call sourced#something() |