Skip to content

Commit 1bc353b

Browse files
committed
patch 8.1.1955: tests contain typos
Problem: Tests contain typos. Solution: Correct the typos. (Dominique Pelle)
1 parent 02b3111 commit 1bc353b

13 files changed

Lines changed: 16 additions & 14 deletions

src/testdir/popupbounce.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
" ./vim --clean -S testdir/popupbounce.vim main.c
77
" gprof vim gmon.out | vim -
88

9-
" using line contination
9+
" using line continuation
1010
set nocp
1111

1212
" don't switch screens when quitting, so we can read the frames/sec

src/testdir/runtest.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ let s:flaky_tests = [
349349
\ 'Test_terminal_scrollback()',
350350
\ 'Test_terminal_split_quit()',
351351
\ 'Test_terminal_termwinkey()',
352-
\ 'Test_terminal_termwinsize_mininmum()',
352+
\ 'Test_terminal_termwinsize_minimum()',
353353
\ 'Test_terminal_termwinsize_option_fixed()',
354354
\ 'Test_terminal_termwinsize_option_zero()',
355355
\ 'Test_terminal_tmap()',
@@ -395,7 +395,7 @@ for s:test in sort(s:tests)
395395

396396
" Repeat a flaky test. Give up when:
397397
" - it fails again with the same message
398-
" - it fails five times (with a different mesage)
398+
" - it fails five times (with a different message)
399399
if len(v:errors) > 0
400400
\ && (index(s:flaky_tests, s:test) >= 0
401401
\ || v:errors[0] =~ s:flaky_errors_re)

src/testdir/screendump.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func VerifyScreenDump(buf, filename, options, ...)
2424
let reference = 'dumps/' . a:filename . '.dump'
2525
let testfile = 'failed/' . a:filename . '.dump'
2626

27-
" Redraw to execut the code that updates the screen. Otherwise we get the
27+
" Redraw to execute the code that updates the screen. Otherwise we get the
2828
" text and attributes only from the internal buffer.
2929
redraw
3030

src/testdir/test49.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ endfunction
521521
"
522522
" Create a script that consists of the body of the function a:funcname.
523523
" Replace any ":return" by a ":finish", any argument variable by a global
524-
" variable, and and every ":call" by a ":source" for the next following argument
524+
" variable, and every ":call" by a ":source" for the next following argument
525525
" in the variable argument list. This function is useful if similar tests are
526526
" to be made for a ":return" from a function call or a ":finish" in a script
527527
" file.

src/testdir/test_autocmd.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ func Test_OptionSet()
10911091
call assert_equal(g:opt[0], g:opt[1])
10921092

10931093

1094-
" 33: Test autocomands when an option value is converted internally.
1094+
" 33: Test autocommands when an option value is converted internally.
10951095
noa set backspace=1 " Reset global and local value (without triggering autocmd)
10961096
let g:options=[['backspace', 'indent,eol', 'indent,eol', 'indent,eol', '2', 'global', 'set']]
10971097
set backspace=2

src/testdir/test_cindent.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ func Test_cindent_1()
815815
}
816816
}
817817

818-
public: // <-- this was incoreectly indented before!!
818+
public: // <-- this was incorectly indented before!!
819819
void testfall();
820820
protected:
821821
void testfall();
@@ -1780,7 +1780,7 @@ func Test_cindent_1()
17801780
}
17811781
}
17821782

1783-
public: // <-- this was incoreectly indented before!!
1783+
public: // <-- this was incorectly indented before!!
17841784
void testfall();
17851785
protected:
17861786
void testfall();

src/testdir/test_const.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func Test_define_script_var_with_lock()
125125
unlet s:x
126126
endfunc
127127

128-
func Test_descructuring_with_lock()
128+
func Test_destructuring_with_lock()
129129
const [a, b, c] = [1, 1.1, 'vim']
130130

131131
call assert_fails('let a = 1', 'E741:')

src/testdir/test_popupwin.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ func Test_popupwin_garbage_collect()
18571857
let winid = popup_create('something', #{filter: function('MyPopupFilter', [{}])})
18581858
call test_garbagecollect_now()
18591859
redraw
1860-
" Must not crach caused by invalid memory access
1860+
" Must not crash caused by invalid memory access
18611861
call feedkeys('j', 'xt')
18621862
call assert_true(v:true)
18631863

src/testdir/test_quickfix.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ func Test_switchbuf()
16671667
call assert_equal(1, bufwinnr('Xqftestfile3'))
16681668

16691669
" If only quickfix window is open in the current tabpage, jumping to an
1670-
" entry with 'switchubf' set to 'usetab' should search in other tabpages.
1670+
" entry with 'switchbuf' set to 'usetab' should search in other tabpages.
16711671
enew | only
16721672
set switchbuf=usetab
16731673
tabedit Xqftestfile1

src/testdir/test_search.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func Test_search_cmdline2()
267267
" nor "/foo\<c-u>\<cr>" works to delete the commandline.
268268
" In that case Vim should return "E35 no previous regular expression",
269269
" but it looks like Vim still sees /foo and therefore the test fails.
270-
" Therefore, disableing this test
270+
" Therefore, disabling this test
271271
"call assert_fails(feedkeys("/foo\<c-w>\<cr>", 'tx'), 'E35')
272272
"call assert_equal({'lnum': 1, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 0}, winsaveview())
273273

0 commit comments

Comments
 (0)