Changeset 255


Ignore:
Timestamp:
Sep 8, 2009, 11:41:41 AM (11 years ago)
Author:
KOBAYASHI, Shinji
Message:

move interval test to rspec

Location:
ruby/branches/0.5
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/assumed_library_types.rb

    r244 r255  
    4646
    4747      def upper_included=(upper_included)
    48         if (upper == nil) && (upper_included != nil)
     48        if (@upper.nil?) && (upper_included != nil)
    4949          raise ArgumentError, "upper is not set"
    5050        end
     
    5757
    5858      def has?(value)
    59         if ((@lower < value) && (value < @upper) ||
    60             (@lower_included == true) && (@lower == value) ||
    61             (@upper_included == true) && (@upper == value))
     59        if ((@lower.nil?||@lower < value||((@lower_included == true) && (@lower == value)))&&
     60            (@upper.nil?||value < @upper||((@upper_included == true) && (@upper == value))))
    6261          true
    6362        else
  • ruby/branches/0.5/spec/spec.opts

    r193 r255  
    11--colour
    2 --format progress
     2--format specdoc
    33--loadby mtime
    44--reverse
Note: See TracChangeset for help on using the changeset viewer.