Ignore:
Timestamp:
Aug 17, 2008, 10:51:53 PM (16 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #39
fixing Version_Tree_ID

File:
1 edited

Legend:

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

    r99 r100  
    156156    assert_nothing_raised(Exception){@party_ref = OpenEHR::RM::Support::Identification::Party_Ref.new('unknown', 'ORGANISATION', @object_id)}
    157157    assert_nothing_raised(Exception){@access_group_ref = OpenEHR::RM::Support::Identification::Access_Group_Ref.new('unknown', 'ACCESS_GROUP', @object_id)}
     158    assert_nothing_raised(Exception){@version_tree_id = OpenEHR::RM::Support::Identification::Version_Tree_ID.new('1.2.3')}
    158159  end
    159160 
     
    170171    assert_instance_of OpenEHR::RM::Support::Identification::Party_Ref, @party_ref
    171172    assert_instance_of OpenEHR::RM::Support::Identification::Access_Group_Ref, @access_group_ref
     173    assert_instance_of OpenEHR::RM::Support::Identification::Version_Tree_ID, @version_tree_id
    172174  end
    173175
     
    388390    assert_nothing_raised(Exception){@access_group_ref.type = 'ACCESS_GROUP'}
    389391  end
     392
     393  def test_version_tree_id
     394    assert_equal '1.2.3', @version_tree_id.value
     395    assert_equal '1', @version_tree_id.trunk_version
     396    assert_equal '2', @version_tree_id.branch_number
     397    assert_equal '3', @version_tree_id.branch_version
     398  end
    390399end
Note: See TracChangeset for help on using the changeset viewer.