forked from aniani/vim
patch 8.2.0183: tests fail when the float feature is disabled
Problem: Tests fail when the float feature is disabled. Solution: Skip tests that don't work without float support.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
set encoding=latin1
|
||||
scriptencoding latin1
|
||||
|
||||
source check.vim
|
||||
|
||||
func s:equivalence_test()
|
||||
let str = "A<><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B C D E<><45><EFBFBD><EFBFBD> F G H I<><49><EFBFBD><EFBFBD> J K L M N<> O<><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD> P Q R S T U<><55><EFBFBD><EFBFBD> V W X Y<> Z a<><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b c d e<><65><EFBFBD><EFBFBD> f g h i<><69><EFBFBD><EFBFBD> j k l m n<> o<><6F><EFBFBD><EFBFBD><EFBFBD><EFBFBD> p q r s t u<><75><EFBFBD><EFBFBD> v w x y<><79> z"
|
||||
let groups = split(str)
|
||||
@@ -132,9 +134,9 @@ func Test_range_with_newline()
|
||||
endfunc
|
||||
|
||||
func Test_pattern_compile_speed()
|
||||
if !exists('+spellcapcheck') || !has('reltime')
|
||||
return
|
||||
endif
|
||||
CheckOption spellcapcheck
|
||||
CheckFunction reltimefloat
|
||||
|
||||
let start = reltime()
|
||||
" this used to be very slow, not it should be about a second
|
||||
set spc=\\v(((((Nxxxxxxx&&xxxx){179})+)+)+){179}
|
||||
|
||||
Reference in New Issue
Block a user