зеркало из https://github.com/github/ruby.git
[ruby/reline] Cyrillic chars are now forced to be displayed in full-width on Windows
So testing is no longer necessary. https://github.com/ruby/reline/commit/c59589548b
This commit is contained in:
Родитель
6966c3ff44
Коммит
2c2a017fe8
|
@ -752,28 +752,6 @@ begin
|
|||
EOC
|
||||
end
|
||||
|
||||
def test_cyrillic_chars
|
||||
omit unless Reline::IOGate.win?
|
||||
start_terminal(50, 50, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl}, startup_message: 'Multiline REPL.')
|
||||
write("`chcp 850`\n")
|
||||
write("`chcp`\n")
|
||||
write("def гопота; 3; end\n")
|
||||
write("гопота\n")
|
||||
close
|
||||
assert_screen(<<~'EOC')
|
||||
Multiline REPL.
|
||||
prompt> `chcp 850`
|
||||
=> "Active code page: 850\n"
|
||||
prompt> `chcp`
|
||||
=> "Active code page: 850\n"
|
||||
prompt> def гопота; 3; end
|
||||
=> :гопота
|
||||
prompt> гопота
|
||||
=> 3
|
||||
prompt>
|
||||
EOC
|
||||
end
|
||||
|
||||
def test_with_newline
|
||||
omit if Reline::IOGate.win?
|
||||
cmd = %Q{ruby -e 'print(%Q{abc def \\e\\r})' | ruby -I#{@pwd}/lib -rreline -e 'p Reline.readline(%{> })'}
|
||||
|
|
Загрузка…
Ссылка в новой задаче