Changeset 230
- Timestamp:
- 06/12/05 08:32:01 (3 years ago)
- Files:
-
- 1 modified
-
trunk/tests/property.tests.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/property.tests.rb
r224 r230 27 27 require 'fm/property' 28 28 29 require 'fm/properties/fuzzy' 30 29 31 ### The Properties test suite 30 32 class FaerieMUD::PropertiesTestCase < FaerieMUD::TestCase … … 32 34 33 35 ### A concrete derivative of the FuzzyProperty class 34 class Luster < F uzzyProperty36 class Luster < FaerieMUD::Property::Fuzzy 35 37 def_kind "luster" 36 38 def_synonyms %w{brightness brilliancy shinyness} … … 123 125 tobj = @tobjClass::new 124 126 stobj = @stobjClass::new 125 luster = Luster::new( 0.35 ) 127 shiny = Luster::new( 0.85 ) 128 dull = Luster::new( 0.35 ) 126 129 127 tobj.addProperties( luster ) 128 assert tobj.is( "shiny" ), "test object isn't 'shiny'" 130 tobj.addProperties( shiny ) 131 assert_nothing_raised { rval = tobj.is?("shiny") } 132 assert_equal shiny, rval, "test object should be 'shiny'" 129 133 end 130 134
