# Test/pathname/test\_pathname.rb

**URL:** <https://www.ruby-forum.com/t/test-pathname-test-pathname-rb/149923>\
**Category:** Development\
**Created:** [October 1, 2008, 8:22am UTC](https://www.ruby-forum.com/t/test-pathname-test-pathname-rb/149923 "2008-10-01T08:22:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TAKANO\_Mitsuhiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f05b48/32.png) [@TAKANO\_Mitsuhiro](https://www.ruby-forum.com/u/TAKANO_Mitsuhiro)\
**Post date:** [October 1, 2008, 8:22am UTC](https://www.ruby-forum.com/t/test-pathname-test-pathname-rb/149923/1 "2008-10-01T08:22:48Z")

</div>

e$B9bLn$G$9!#e(B

[http://svn.ruby-lang.org/repos/ruby/trunk](http://svn.ruby-lang.org/repos/ruby/trunk)  
e$B$Ne(B  
test/pathname/test\_pathname.rb  
e$B$K$D$$$F!"%F%9%H$7$F$$$k%U%l!\<%`%o!\<%/$,0[$J$C$F$$$k$h$&$G$9!#e(B

# e$B85$Oe(Bminiunite$B$r;HMQ$7$F$$$^$7$?!#e(B

# Index: /home/takano/ruby/test/pathname/test\_pathname.rb

— /home/takano/ruby/test/pathname/test\_pathname.rb (e$B%j%S%8%g%se(B  
19651)  
+++ /home/takano/ruby/test/pathname/test\_pathname.rb (e$B:n6H%3%T!\<e(B)  
@@ -462,8 +462,8 @@  
str = “a”  
obj = Pathname.new(str)  
assert\_equal(str, obj.to\_s)

- refute\_same(str, obj.to\_s)
- refute\_same(obj.to\_s, obj.to\_s)

- assert\_not\_same(str, obj.to\_s)
- assert\_not\_same(obj.to\_s, obj.to\_s)  
end
