Changeset 100 for ruby/trunk/lib/models/tests
- Timestamp:
- Aug 17, 2008, 10:51:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/tests/test_reference_model.rb
r99 r100 156 156 assert_nothing_raised(Exception){@party_ref = OpenEHR::RM::Support::Identification::Party_Ref.new('unknown', 'ORGANISATION', @object_id)} 157 157 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')} 158 159 end 159 160 … … 170 171 assert_instance_of OpenEHR::RM::Support::Identification::Party_Ref, @party_ref 171 172 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 172 174 end 173 175 … … 388 390 assert_nothing_raised(Exception){@access_group_ref.type = 'ACCESS_GROUP'} 389 391 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 390 399 end
Note:
See TracChangeset
for help on using the changeset viewer.