@pytest.mark.parametrize('text, deleted, rest', [('test delete|foobar', 'delete', 'test |foobar'), ('test delete |foobar', 'delete ', 'test |foobar'), ('open -t github.com/foo/bar  |', 'bar  ', 'open -t github.com/foo/|'), ('open -t |github.com/foo/bar', 't ', 'open -|github.com/foo/bar'), fixme(('test del<ete>foobar', 'delete', 'test |foobar')), ('test del<ete >foobar', 'del', 'test |ete foobar'), ('open foo/bar.baz|', 'baz', 'open foo/bar.|')])
def test_rl_backward_kill_word(lineedit, bridge, text, deleted, rest):
 _validate_deletion(lineedit, bridge, bridge.rl_backward_kill_word, text, deleted, rest)

@ pytest . mark . parametrize ( 'text, deleted, rest' , [ ( 'test delete|foobar' , 'delete' , 'test |foobar' ) , ( 'test delete |foobar' , 'delete ' , 'test |foobar' ) , ( 'open -t github.com/foo/bar  |' , 'bar  ' , 'open -t github.com/foo/|' ) , ( 'open -t |github.com/foo/bar' , 't ' , 'open -|github.com/foo/bar' ) , fixme ( ( 'test del<ete>foobar' , 'delete' , 'test |foobar' ) ) , ( 'test del<ete >foobar' , 'del' , 'test |ete foobar' ) , ( 'open foo/bar.baz|' , 'baz' , 'open foo/bar.|' ) ] ) def test_rl_backward_kill_word ( lineedit , bridge , text , deleted , rest ) : _validate_deletion ( lineedit , bridge , bridge . rl_backward_kill_word , text , deleted , rest )
delete to word beginning and see if it comes back with yank .