Skip to content

Commit

Permalink
* test/nkf/test_nkf.rb: add a test for [ruby-dev:36909].
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
mame committed Oct 26, 2008
1 parent abfddf2 commit 52061f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Mon Oct 27 01:29:55 2008 Yusuke Endoh <mame@tsg.ne.jp>

* test/nkf/test_nkf.rb: add a test for [ruby-dev:36909].

Mon Oct 27 01:05:48 2008 NARUSE, Yui <naruse@ruby-lang.org>

* ext/nkf/nkf.c (rb_nkf_convert): avoid GC.
Expand Down
6 changes: 6 additions & 0 deletions test/nkf/test_nkf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ def test_guess
assert_equal(::NKF::EUC, NKF.guess(str_euc))
end

def test_ruby_dev_36909
assert_nothing_raised do
1000.times { NKF.nkf("--oc=eucJP-nkf", "foo") }
end
end

end

0 comments on commit 52061f4

Please sign in to comment.