Last change
on this file since 268 was 268, checked in by KOBAYASHI, Shinji, 15 years ago |
fixed around identification
|
File size:
857 bytes
|
Rev | Line | |
---|
[129] | 1 | require 'test/unit'
|
---|
| 2 | require 'set'
|
---|
| 3 | require 'rm'
|
---|
| 4 |
|
---|
[165] | 5 | include OpenEHR::RM::Data_Structures
|
---|
[129] | 6 |
|
---|
| 7 | class RmDataStructureTest < Test::Unit::TestCase
|
---|
| 8 | def setup
|
---|
| 9 | name = OpenEHR::RM::Data_Types::Text::DV_Text.new('blood')
|
---|
| 10 | uid = OpenEHR::RM::Support::Identification::UID_Based_ID.new('ehr::test-1')
|
---|
| 11 | links = Set.new([uid])
|
---|
| 12 | assert_nothing_raised(Exception){
|
---|
[162] | 13 | @data_structure = OpenEHR::RM::Data_Structures::Data_Structure.new(:archetype_node_id => 'test',
|
---|
| 14 | :name => name,
|
---|
| 15 | :links => links) }
|
---|
[129] | 16 | end
|
---|
| 17 |
|
---|
| 18 | def test_init
|
---|
| 19 | assert_instance_of OpenEHR::RM::Data_Structures::Data_Structure, @data_structure
|
---|
| 20 | end
|
---|
| 21 |
|
---|
| 22 | def test_data_structure
|
---|
| 23 | assert_raise(NotImplementedError){@data_structure.as_hierarchy}
|
---|
| 24 | end
|
---|
| 25 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.