mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test/old: run most tests in test_regexp_latin.vim
Most tests here don't depend on 'set encoding=latin1'. Skip Test_recursive_addstate() because of ASAN build.
This commit is contained in:
parent
8b60368c1b
commit
3dbcf69888
@ -31,14 +31,11 @@ endif
|
|||||||
SCRIPTS ?= $(SCRIPTS_DEFAULT)
|
SCRIPTS ?= $(SCRIPTS_DEFAULT)
|
||||||
|
|
||||||
# Tests using runtest.vim.
|
# Tests using runtest.vim.
|
||||||
NEW_TESTS_ALOT := test_alot_utf8 test_alot
|
NEW_TESTS_ALOT := test_alot_utf8 test_alot test_alot_latin
|
||||||
NEW_TESTS_IN_ALOT := $(shell sed -n '/^source/ s/^source //; s/\.vim$$//p' $(addsuffix .vim,$(NEW_TESTS_ALOT)))
|
NEW_TESTS_IN_ALOT := $(shell sed -n '/^source/ s/^source //; s/\.vim$$//p' $(addsuffix .vim,$(NEW_TESTS_ALOT)))
|
||||||
NEW_TESTS_IN_ALOT_LATIN := $(shell sed -n '/^source/ s/^source //; s/\.vim$$//p' test_alot_latin.vim)
|
|
||||||
# Ignored tests.
|
# Ignored tests.
|
||||||
# test_alot_latin: Nvim does not allow setting encoding.
|
|
||||||
# test_largefile: uses too much resources to run on CI.
|
# test_largefile: uses too much resources to run on CI.
|
||||||
NEW_TESTS_IGNORE := \
|
NEW_TESTS_IGNORE := \
|
||||||
test_alot_latin $(NEW_TESTS_IN_ALOT_LATIN) \
|
|
||||||
test_largefile \
|
test_largefile \
|
||||||
|
|
||||||
NEW_TESTS := $(sort $(basename $(notdir $(wildcard test_*.vim))))
|
NEW_TESTS := $(sort $(basename $(notdir $(wildcard test_*.vim))))
|
||||||
|
@ -4,7 +4,4 @@
|
|||||||
" These tests use latin1 'encoding'. Setting 'encoding' is in the individual
|
" These tests use latin1 'encoding'. Setting 'encoding' is in the individual
|
||||||
" files, so that they can be run by themselves.
|
" files, so that they can be run by themselves.
|
||||||
|
|
||||||
" Nvim does not allow setting 'encoding', so skip this test group.
|
|
||||||
finish
|
|
||||||
|
|
||||||
source test_regexp_latin.vim
|
source test_regexp_latin.vim
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
" Tests for regexp in latin1 encoding
|
" Tests for regexp in latin1 encoding
|
||||||
set encoding=latin1
|
" set encoding=latin1
|
||||||
scriptencoding latin1
|
scriptencoding latin1
|
||||||
|
|
||||||
func s:equivalence_test()
|
func s:equivalence_test()
|
||||||
@ -22,11 +22,13 @@ func s:equivalence_test()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_equivalence_re1()
|
func Test_equivalence_re1()
|
||||||
|
throw 'skipped: Nvim does not support enc=latin1'
|
||||||
set re=1
|
set re=1
|
||||||
call s:equivalence_test()
|
call s:equivalence_test()
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_equivalence_re2()
|
func Test_equivalence_re2()
|
||||||
|
throw 'skipped: Nvim does not support enc=latin1'
|
||||||
set re=2
|
set re=2
|
||||||
call s:equivalence_test()
|
call s:equivalence_test()
|
||||||
endfunc
|
endfunc
|
||||||
@ -98,6 +100,7 @@ func Test_multi_failure()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_recursive_addstate()
|
func Test_recursive_addstate()
|
||||||
|
throw 'skipped: TODO: '
|
||||||
" This will call addstate() recursively until it runs into the limit.
|
" This will call addstate() recursively until it runs into the limit.
|
||||||
let lnum = search('\v((){328}){389}')
|
let lnum = search('\v((){328}){389}')
|
||||||
call assert_equal(0, lnum)
|
call assert_equal(0, lnum)
|
||||||
|
Loading…
Reference in New Issue
Block a user