Ignore:
Timestamp:
Jun 16, 2009, 7:49:25 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #50
Quantity package is difficult to solve.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/tests/rm/test_data_types.rb

    r138 r139  
    206206  end
    207207
    208   def test_dv_quantifie
    209 
     208  def test_dv_quantified
     209
     210  end
     211
     212  def test_proportion_kind
     213    assert_equal 0, OpenEHR::RM::Data_Types::Quantity::Proportion_Kind::PK_RATIO
     214    assert_equal 1, OpenEHR::RM::Data_Types::Quantity::Proportion_Kind::PK_UNITARITY
     215    assert_equal 2, OpenEHR::RM::Data_Types::Quantity::Proportion_Kind::PK_PERCENT
     216    assert_equal 3, OpenEHR::RM::Data_Types::Quantity::Proportion_Kind::PK_FRACTION
     217    assert_equal 4, OpenEHR::RM::Data_Types::Quantity::Proportion_Kind::PK_INTEGER_FRACTION
     218    assert OpenEHR::RM::Data_Types::Quantity::Proportion_Kind.valid_proportion_kind?(0)
     219    assert OpenEHR::RM::Data_Types::Quantity::Proportion_Kind.valid_proportion_kind?(4)
     220    assert OpenEHR::RM::Data_Types::Quantity::Proportion_Kind.valid_proportion_kind?(-1)
     221    assert OpenEHR::RM::Data_Types::Quantity::Proportion_Kind.valid_proportion_kind?(5)
    210222  end
    211223end
Note: See TracChangeset for help on using the changeset viewer.