From: <ki...@us...> - 2014-06-14 12:51:15
|
Revision: 2557 http://sourceforge.net/p/rubycocoa/svn/2557 Author: kimuraw Date: 2014-06-14 12:51:08 +0000 (Sat, 14 Jun 2014) Log Message: ----------- Add assertions Regexp#===(obj) in test_grep Array#grep(obj) invokes `pattern === element` for each element. Regexp#===(obj) - obj is kind of String, Symbol -> matches Regexp - obj responds to :to_str -> matches Regexp - obj does not respond to :to_str -> returns false OSX::NSNumber does not respond to :to_str, then Regexp#===(nsnum) should returns false. but Regexp#===(nsnum) on ruby-2.x invoked OSX::NSNumber#to_str and raises an exception. Modified Paths: -------------- trunk/src/ChangeLog trunk/src/tests/tc_nsarray.rb This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |