@pytest.mark.parametrize('text, deleted, rest', [('delete this| test', 'delete this', '| test'), fixme(('delete <this> test', 'delete this', '| test')), ('delete <this> test', 'delete ', '|this test'), fixme(('f<oo>bar', 'foo', '|bar')), ('f<oo>bar', 'f', '|oobar')])
def test_rl_unix_line_discard(lineedit, bridge, text, deleted, rest):
 _validate_deletion(lineedit, bridge, bridge.rl_unix_line_discard, text, deleted, rest)

@ pytest . mark . parametrize ( 'text, deleted, rest' , [ ( 'delete this| test' , 'delete this' , '| test' ) , fixme ( ( 'delete <this> test' , 'delete this' , '| test' ) ) , ( 'delete <this> test' , 'delete ' , '|this test' ) , fixme ( ( 'f<oo>bar' , 'foo' , '|bar' ) ) , ( 'f<oo>bar' , 'f' , '|oobar' ) ] ) def test_rl_unix_line_discard ( lineedit , bridge , text , deleted , rest ) : _validate_deletion ( lineedit , bridge , bridge . rl_unix_line_discard , text , deleted , rest )
delete from the cursor to the beginning of the line and yank back .