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

ruby-changes:3709

From: ko1@a...
Date: Thu, 24 Jan 2008 03:14:57 +0900 (JST)
Subject: [ruby-changes:3709] akr - Ruby:r15198 (trunk): add a test for String#end_with?.

akr	2008-01-24 03:14:28 +0900 (Thu, 24 Jan 2008)

  New Revision: 15198

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

  Log:
    add a test for String#end_with?.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_string.rb?r1=15198&r2=15197&diff_format=u

Index: test/ruby/test_string.rb
===================================================================
--- test/ruby/test_string.rb	(revision 15197)
+++ test/ruby/test_string.rb	(revision 15198)
@@ -1366,4 +1366,8 @@
     assert_equal(S("4\n"), l.slice!(/\A.*\n/), "[ruby-dev:31665]")
     assert_nil(l.slice!(/\A.*\n/), "[ruby-dev:31665]")
   end
+
+  def test_end_with?
+    assert("abc".end_with?("c"))
+  end
 end

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

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