mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-14 14:48:49 +00:00
Add a test case for coverage
This commit is contained in:
parent
3ae1bed11c
commit
28279e7b94
@ -1,6 +1,7 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
import pytest
|
||||
|
||||
from thefuck.rules import switch_lang
|
||||
from thefuck.types import Command
|
||||
|
||||
@ -32,6 +33,7 @@ def test_not_match(command):
|
||||
(Command(u'שפא-עקא ןמדאשךך הןצ', ''), 'apt-get install vim'),
|
||||
(Command(u'ךד -ךש', ''), 'ls -la'),
|
||||
(Command(u'멧-ㅎㄷㅅ ㅑㅜㄴㅅ미ㅣ 퍄ㅡ', ''), 'apt-get install vim'),
|
||||
(Command(u'ㅣㄴ -ㅣㅁ', ''), 'ls -la')])
|
||||
(Command(u'ㅣㄴ -ㅣㅁ', ''), 'ls -la'),
|
||||
(Command(u'ㅔㅁㅅ촤', ''), 'patchk'), ])
|
||||
def test_get_new_command(command, new_command):
|
||||
assert switch_lang.get_new_command(command) == new_command
|
||||
|
Loading…
x
Reference in New Issue
Block a user