test/variable_test.rb in strom-0.0.1 vs test/variable_test.rb in strom-0.0.2

- old
+ new

@@ -10,9 +10,17 @@ it '#value' do @variable.value.must_equal 1.0 end + it '#to_s' do + @variable.to_s.must_equal '1.0 variables' + end + + it '#inspect' do + @variable.inspect.must_equal '1.0 variables' + end + it '#and' do 0.5.amperes.and(18.ohms).must_equal Volt.new(9.0) 18.ohms.and(9.volts).must_equal Ampere.new(0.5) 9.volts.and(0.5.amperes).must_equal Ohm.new(18.0) end