[前][次][番号順一覧][スレッド一覧]

ruby-changes:25090

From: nobu <ko1@a...>
Date: Thu, 11 Oct 2012 15:50:43 +0900 (JST)
Subject: [ruby-changes:25090] nobu:r37142 (trunk): test_string.rb: missing test

nobu	2012-10-11 15:50:31 +0900 (Thu, 11 Oct 2012)

  New Revision: 37142

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37142

  Log:
    test_string.rb: missing test
    
    * test/ruby/test_string.rb (test_each_codepoint): missing test.

  Modified files:
    trunk/test/ruby/test_string.rb

Index: test/ruby/test_string.rb
===================================================================
--- test/ruby/test_string.rb	(revision 37141)
+++ test/ruby/test_string.rb	(revision 37142)
@@ -633,6 +633,12 @@
     assert_equal(67, res[2])
   end
 
+  def test_each_codepoint
+    res = []
+    S("ABC").codepoints.each {|x| res << x}
+    assert_equal([65, 66, 67], res)
+  end
+
   def test_each_line
     save = $/
     $/ = "\n"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]