1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/readline/readline.c (readline_s_set_completion_append_character):

accept nil.  [ruby-core:03765]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2004-11-19 01:38:38 +00:00
parent 2bf189db24
commit 964171ebfa
3 changed files with 23 additions and 4 deletions

View file

@ -38,6 +38,15 @@ class TestReadline < Test::Unit::TestCase
end
end
def test_completion_append_character
Readline.completion_append_character = nil
assert_equal(nil, Readline.completion_append_character)
Readline.completion_append_character = "x"
assert_equal("x", Readline.completion_append_character)
Readline.completion_append_character = "xyz"
assert_equal("x", Readline.completion_append_character)
end
private
def replace_stdio(stdin, stdout)