mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 06:34:09 +00:00
#614: Add --repeat option
This commit is contained in:
@@ -33,6 +33,9 @@ class TestBash(object):
|
||||
def test_and_(self, shell):
|
||||
assert shell.and_('ls', 'cd') == 'ls && cd'
|
||||
|
||||
def test_or_(self, shell):
|
||||
assert shell.or_('ls', 'cd') == 'ls || cd'
|
||||
|
||||
def test_get_aliases(self, shell):
|
||||
assert shell.get_aliases() == {'fuck': 'eval $(thefuck $(fc -ln -1))',
|
||||
'l': 'ls -CF',
|
||||
|
||||
@@ -55,6 +55,9 @@ class TestFish(object):
|
||||
def test_and_(self, shell):
|
||||
assert shell.and_('foo', 'bar') == 'foo; and bar'
|
||||
|
||||
def test_or_(self, shell):
|
||||
assert shell.or_('foo', 'bar') == 'foo; or bar'
|
||||
|
||||
def test_get_aliases(self, shell):
|
||||
assert shell.get_aliases() == {'fish_config': 'fish_config',
|
||||
'fuck': 'fuck',
|
||||
|
||||
@@ -18,6 +18,9 @@ class TestGeneric(object):
|
||||
def test_and_(self, shell):
|
||||
assert shell.and_('ls', 'cd') == 'ls && cd'
|
||||
|
||||
def test_or_(self, shell):
|
||||
assert shell.or_('ls', 'cd') == 'ls || cd'
|
||||
|
||||
def test_get_aliases(self, shell):
|
||||
assert shell.get_aliases() == {}
|
||||
|
||||
|
||||
@@ -34,6 +34,9 @@ class TestTcsh(object):
|
||||
def test_and_(self, shell):
|
||||
assert shell.and_('ls', 'cd') == 'ls && cd'
|
||||
|
||||
def test_or_(self, shell):
|
||||
assert shell.or_('ls', 'cd') == 'ls || cd'
|
||||
|
||||
def test_get_aliases(self, shell):
|
||||
assert shell.get_aliases() == {'fuck': 'eval $(thefuck $(fc -ln -1))',
|
||||
'l': 'ls -CF',
|
||||
|
||||
@@ -32,6 +32,9 @@ class TestZsh(object):
|
||||
def test_and_(self, shell):
|
||||
assert shell.and_('ls', 'cd') == 'ls && cd'
|
||||
|
||||
def test_or_(self, shell):
|
||||
assert shell.or_('ls', 'cd') == 'ls || cd'
|
||||
|
||||
def test_get_aliases(self, shell):
|
||||
assert shell.get_aliases() == {
|
||||
'fuck': 'eval $(thefuck $(fc -ln -1 | tail -n 1))',
|
||||
|
||||
Reference in New Issue
Block a user