1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-25 03:59:08 +00:00
thefuck/tests/rules/test_go_unknown_command.py
ik1ne 7b66214894 - Add: rules/go_unknown_command for misspelled go commands.
- Add: tests/test_go_unknown_command which tests match and mismatch case of rules/go_unknown_command.
- Change: Added description of go_unknown_command to README.md.
2019-07-19 00:05:24 +09:00

14 lines
354 B
Python

from thefuck.rules.go_unknown_command import match
from thefuck.types import Command
_GO_BUILD_MISSPELLED_OUTPUT = """go bulid: unknown command
Run 'go help' for usage."""
def test_match():
assert match(Command('go bulid', _GO_BUILD_MISSPELLED_OUTPUT))
def test_not_match():
assert not match(Command('go run', 'go run: no go files listed'))