Skip to content
Browse files

fix typo & old names

  • Loading branch information...
1 parent 6454342 commit 700a1447c8bb94178d4f3ad84d973a263a483c9a @kachick committed May 28, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 README.rdoc
  2. +5 −5 lib/st/objectextension.rb
View
2 README.rdoc
@@ -17,7 +17,7 @@ A Simplified Testing Framework.
require 'my_codes' # Write here tha path, your lib or codes
require 'st' # at Last of requires
-* Overviwe
+* Overview
ST 'Successful case' do
View
10 lib/st/objectextension.rb
@@ -7,22 +7,22 @@ module ObjectExtension
# true if bidirectical passed #equal, and __id__ is same value
def EQUAL?(other)
- (__id__ == other.__id__) && (_tt_bidirectical? :equal?, other)
+ (__id__ == other.__id__) && (_st_bidirectical? :equal?, other)
end
# true if completed condition for hash key
def EQL?(other)
- (_tt_bidirectical? :eql?, other) && (hash == other.hash) &&
+ (_st_bidirectical? :eql?, other) && (hash == other.hash) &&
( {self => true}.has_key? other)
end
# true if under "=="
def IS?(other)
- _tt_bidirectical? :==, other
+ _st_bidirectical? :==, other
end
def NOT?(other)
- (_tt_bidirectical? :!=, other) && (!(self == other)) && (!(other == self))
+ (_st_bidirectical? :!=, other) && (!(self == other)) && (!(other == self))
end
def MATCH?(other)
@@ -61,7 +61,7 @@ def RESPOND?(message)
private
- def _tt_bidirectical?(comparison, other)
+ def _st_bidirectical?(comparison, other)
(__send__ comparison, other) && (other.__send__ comparison, self)
end

0 comments on commit 700a144

Please sign in to comment.
Something went wrong with that request. Please try again.