1. ZyX_I
  2. frawor

Commits

ZyX_I  committed 1da6f76

Added invalid-addextfunctions check

  • Participants
  • Parent commits 456300f
  • Branches default

Comments (0)

Files changed (22)

File test/invalid-addextfunctions.in

View file
+:let &rtp.=",".escape($TESTDIR, ',\').'/rtp'
+:let i=1
+:while filereadable("rtp/plugin/invalid-addextfunctions.".i.".vim") | let g:testfile="plugin/invalid-addextfunctions.".i.".vim" | source test.vim | call FraworUnload(g:testfile[:-5]) | let i+=1 | endwhile

File test/invalid-addextfunctions.ok

View file
+Frawor:plugin/frawor/functions:fnotdict
+Frawor:plugin/frawor/functions:invfname
+Frawor:plugin/frawor/functions:fdef
+Frawor:plugin/frawor/functions:fdef
+Frawor:plugin/frawor/functions:foptsnotdict
+Frawor:plugin/frawor/functions:nofunc
+Frawor:plugin/frawor/functions:nref
+Frawor:plugin/frawor/functions:altnlst
+Frawor:plugin/frawor/functions:altelnlst
+Frawor:plugin/frawor/functions:altelinvlen
+Frawor:plugin/frawor/functions:altelinvlen
+Frawor:plugin/frawor/functions:altelnstr
+Frawor:plugin/frawor/functions:invvname
+Frawor:plugin/frawor/functions:invvnlen
+Frawor:plugin/frawor/functions:ualt
+Frawor:plugin/frawor/functions:noocpref
+Frawor:plugin/frawor/functions:invoname
+Frawor:plugin/frawor/functions:invoval
+Frawor:plugin/frawor/functions:usaver
+Frawor:plugin/frawor/functions:ualt

File test/rtp/plugin/invalid-addextfunctions.1.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions(0)

File test/rtp/plugin/invalid-addextfunctions.10.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [[]]}})

File test/rtp/plugin/invalid-addextfunctions.11.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [[1, 1, 1]]}})

File test/rtp/plugin/invalid-addextfunctions.12.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [[1, 1]]}})

File test/rtp/plugin/invalid-addextfunctions.13.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['g:0', 1]]}})

File test/rtp/plugin/invalid-addextfunctions.14.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['+', 1]]}})

File test/rtp/plugin/invalid-addextfunctions.15.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['&l', 1]]}})

File test/rtp/plugin/invalid-addextfunctions.16.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['&list', 1]]}})

File test/rtp/plugin/invalid-addextfunctions.17.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['&g:_', 1]]}})

File test/rtp/plugin/invalid-addextfunctions.18.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['&l:list', '']]}})

File test/rtp/plugin/invalid-addextfunctions.19.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['+!!!', '']]}})

File test/rtp/plugin/invalid-addextfunctions.2.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'function': {}})

File test/rtp/plugin/invalid-addextfunctions.20.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [['!nomatch', '']]}})

File test/rtp/plugin/invalid-addextfunctions.3.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr')}})
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr')}})

File test/rtp/plugin/invalid-addextfunctions.4.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+function s:F.redefineself()
+    call s:F._frawor.addextfunctions({'Function': {'function': s:F.redefineself,
+                \                                  'redefine': 1}})
+endfunction
+call s:F._frawor.addextfunctions({'Function': {'function': s:F.redefineself}})
+call Function()

File test/rtp/plugin/invalid-addextfunctions.5.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': []})

File test/rtp/plugin/invalid-addextfunctions.6.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {}})

File test/rtp/plugin/invalid-addextfunctions.7.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': 0}})

File test/rtp/plugin/invalid-addextfunctions.8.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': 0}})

File test/rtp/plugin/invalid-addextfunctions.9.vim

View file
+execute frawor#Setup('0.0', {'plugin/frawor/functions': '0.0'}, 1)
+call s:F._frawor.addextfunctions({'Function': {'function': function('tr'),
+            \                                 'altervars': [0]}})