mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Merge pull request #86 from dionyziz/switch_lang_greek
Add Greek to switch lang
This commit is contained in:
		| @@ -7,8 +7,13 @@ from thefuck.rules import switch_lang | |||||||
| def test_match(): | def test_match(): | ||||||
|     assert switch_lang.match(Mock(stderr='command not found: фзе-пуе', |     assert switch_lang.match(Mock(stderr='command not found: фзе-пуе', | ||||||
|                                   script=u'фзе-пуе'), None) |                                   script=u'фзе-пуе'), None) | ||||||
|  |     assert switch_lang.match(Mock(stderr='command not found: λσ', | ||||||
|  |                                   script=u'λσ'), None) | ||||||
|  |  | ||||||
|     assert not switch_lang.match(Mock(stderr='command not found: pat-get', |     assert not switch_lang.match(Mock(stderr='command not found: pat-get', | ||||||
|                                       script=u'pat-get'), None) |                                       script=u'pat-get'), None) | ||||||
|  |     assert not switch_lang.match(Mock(stderr='command not found: ls', | ||||||
|  |                                       script=u'ls'), None) | ||||||
|     assert not switch_lang.match(Mock(stderr='some info', |     assert not switch_lang.match(Mock(stderr='some info', | ||||||
|                                       script=u'фзе-пуе'), None) |                                       script=u'фзе-пуе'), None) | ||||||
|  |  | ||||||
| @@ -16,3 +21,5 @@ def test_match(): | |||||||
| def test_get_new_command(): | def test_get_new_command(): | ||||||
|     assert switch_lang.get_new_command( |     assert switch_lang.get_new_command( | ||||||
|         Mock(script=u'фзе-пуе штыефдд мшь'), None) == 'apt-get install vim' |         Mock(script=u'фзе-пуе штыефдд мшь'), None) == 'apt-get install vim' | ||||||
|  |     assert switch_lang.get_new_command( | ||||||
|  |         Mock(script=u'λσ -λα'), None) == 'ls -la' | ||||||
|   | |||||||
| @@ -3,7 +3,8 @@ | |||||||
| target_layout = '''qwertyuiop[]asdfghjkl;'zxcvbnm,./QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>?''' | target_layout = '''qwertyuiop[]asdfghjkl;'zxcvbnm,./QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>?''' | ||||||
|  |  | ||||||
| source_layouts = [u'''йцукенгшщзхъфывапролджэячсмитьбю.ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,''', | source_layouts = [u'''йцукенгшщзхъфывапролджэячсмитьбю.ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ,''', | ||||||
|                   u'''ضصثقفغعهخحجچشسیبلاتنمکگظطزرذدپو./ًٌٍَُِّْ][}{ؤئيإأآة»«:؛كٓژٰٔء><؟'''] |                   u'''ضصثقفغعهخحجچشسیبلاتنمکگظطزرذدپو./ًٌٍَُِّْ][}{ؤئيإأآة»«:؛كٓژٰٔء><؟''', | ||||||
|  |                   u''';ςερτυθιοπ[]ασδφγηξκλ΄ζχψωβνμ,./:΅ΕΡΤΥΘΙΟΠ{}ΑΣΔΦΓΗΞΚΛ¨"ΖΧΨΩΒΝΜ<>?'''] | ||||||
|  |  | ||||||
|  |  | ||||||
| def _get_matched_layout(command): | def _get_matched_layout(command): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user