diff --git a/t/easymotion_spec.vim b/t/easymotion_spec.vim index 18e6650..3e12303 100644 --- a/t/easymotion_spec.vim +++ b/t/easymotion_spec.vim @@ -47,6 +47,10 @@ describe 'Default settings' Expect maparg('(easymotion-F)', 'n') ==# ':call EasyMotion#S(1,0,1)' Expect maparg('(easymotion-F)', 'o') ==# ':call EasyMotion#S(1,0,1)' Expect maparg('(easymotion-F)', 'v') ==# ':call EasyMotion#S(1,1,1)' + " bd-f + Expect maparg('(easymotion-bd-f)', 'n') ==# maparg('(easymotion-s)', 'n') + Expect maparg('(easymotion-bd-f)', 'o') ==# maparg('(easymotion-s)', 'o') + Expect maparg('(easymotion-bd-f)', 'v') ==# maparg('(easymotion-s)', 'v') " t Expect maparg('(easymotion-t)', 'n') ==# ':call EasyMotion#T(1,0,0)' Expect maparg('(easymotion-t)', 'o') ==# ':call EasyMotion#T(1,0,0)' @@ -71,6 +75,10 @@ describe 'Default settings' Expect maparg('(easymotion-Fl)', 'n') ==# ':call EasyMotion#SL(1,0,1)' Expect maparg('(easymotion-Fl)', 'o') ==# ':call EasyMotion#SL(1,0,1)' Expect maparg('(easymotion-Fl)', 'v') ==# ':call EasyMotion#SL(1,1,1)' + " bd-fl + Expect maparg('(easymotion-bd-fl)', 'n') ==# maparg('(easymotion-sl)', 'n') + Expect maparg('(easymotion-bd-fl)', 'o') ==# maparg('(easymotion-sl)', 'o') + Expect maparg('(easymotion-bd-fl)', 'v') ==# maparg('(easymotion-sl)', 'v') " tl Expect maparg('(easymotion-tl)', 'n') ==# ':call EasyMotion#TL(1,0,0)' Expect maparg('(easymotion-tl)', 'o') ==# ':call EasyMotion#TL(1,0,0)' @@ -98,6 +106,10 @@ describe 'Default settings' Expect maparg('(easymotion-F2)', 'n') ==# ':call EasyMotion#S(2,0,1)' Expect maparg('(easymotion-F2)', 'o') ==# ':call EasyMotion#S(2,0,1)' Expect maparg('(easymotion-F2)', 'v') ==# ':call EasyMotion#S(2,1,1)' + " bd-f2 + Expect maparg('(easymotion-bd-f2)', 'n') ==# maparg('(easymotion-s2)', 'n') + Expect maparg('(easymotion-bd-f2)', 'o') ==# maparg('(easymotion-s2)', 'o') + Expect maparg('(easymotion-bd-f2)', 'v') ==# maparg('(easymotion-s2)', 'v') " t2 Expect maparg('(easymotion-t2)', 'n') ==# ':call EasyMotion#T(2,0,0)' Expect maparg('(easymotion-t2)', 'o') ==# ':call EasyMotion#T(2,0,0)' @@ -122,6 +134,10 @@ describe 'Default settings' Expect maparg('(easymotion-Fl2)', 'n') ==# ':call EasyMotion#SL(2,0,1)' Expect maparg('(easymotion-Fl2)', 'o') ==# ':call EasyMotion#SL(2,0,1)' Expect maparg('(easymotion-Fl2)', 'v') ==# ':call EasyMotion#SL(2,1,1)' + " bd-fl2 + Expect maparg('(easymotion-bd-fl2)', 'n') ==# maparg('(easymotion-sl2)', 'n') + Expect maparg('(easymotion-bd-fl2)', 'o') ==# maparg('(easymotion-sl2)', 'o') + Expect maparg('(easymotion-bd-fl2)', 'v') ==# maparg('(easymotion-sl2)', 'v') " tl2 Expect maparg('(easymotion-tl2)', 'n') ==# ':call EasyMotion#TL(2,0,0)' Expect maparg('(easymotion-tl2)', 'o') ==# ':call EasyMotion#TL(2,0,0)' @@ -149,6 +165,10 @@ describe 'Default settings' Expect maparg('(easymotion-Fn)', 'n') ==# ':call EasyMotion#S(-1,0,1)' Expect maparg('(easymotion-Fn)', 'o') ==# ':call EasyMotion#S(-1,0,1)' Expect maparg('(easymotion-Fn)', 'v') ==# ':call EasyMotion#S(-1,1,1)' + " bd-fn + Expect maparg('(easymotion-bd-fn)', 'n') ==# maparg('(easymotion-sn)', 'n') + Expect maparg('(easymotion-bd-fn)', 'o') ==# maparg('(easymotion-sn)', 'o') + Expect maparg('(easymotion-bd-fn)', 'v') ==# maparg('(easymotion-sn)', 'v') " tn Expect maparg('(easymotion-tn)', 'n') ==# ':call EasyMotion#T(-1,0,0)' Expect maparg('(easymotion-tn)', 'o') ==# ':call EasyMotion#T(-1,0,0)' @@ -173,6 +193,10 @@ describe 'Default settings' Expect maparg('(easymotion-Fln)', 'n') ==# ':call EasyMotion#SL(-1,0,1)' Expect maparg('(easymotion-Fln)', 'o') ==# ':call EasyMotion#SL(-1,0,1)' Expect maparg('(easymotion-Fln)', 'v') ==# ':call EasyMotion#SL(-1,1,1)' + " bd-fln + Expect maparg('(easymotion-bd-fln)', 'n') ==# maparg('(easymotion-sln)', 'n') + Expect maparg('(easymotion-bd-fln)', 'o') ==# maparg('(easymotion-sln)', 'o') + Expect maparg('(easymotion-bd-fln)', 'v') ==# maparg('(easymotion-sln)', 'v') " tln Expect maparg('(easymotion-tln)', 'n') ==# ':call EasyMotion#TL(-1,0,0)' Expect maparg('(easymotion-tln)', 'o') ==# ':call EasyMotion#TL(-1,0,0)'