Last change
on this file since 291 was 291, checked in by KOBAYASHI, Shinji, 15 years ago |
merged branches/0.5 to trunk
|
File size:
1.1 KB
|
Rev | Line | |
---|
[129] | 1 | require 'test/unit'
|
---|
| 2 | require 'set'
|
---|
| 3 | require 'rm'
|
---|
| 4 |
|
---|
[291] | 5 | <<<<<<< .working
|
---|
[165] | 6 | include OpenEHR::RM::Data_Structures
|
---|
[291] | 7 | =======
|
---|
| 8 | include OpenEHR::RM::Data_Structures
|
---|
| 9 | include OpenEHR::RM::Data_Structures::Item_Structure
|
---|
| 10 | >>>>>>> .merge-right.r168
|
---|
[129] | 11 |
|
---|
| 12 | class RmDataStructureTest < Test::Unit::TestCase
|
---|
| 13 | def setup
|
---|
| 14 | name = OpenEHR::RM::Data_Types::Text::DV_Text.new('blood')
|
---|
| 15 | uid = OpenEHR::RM::Support::Identification::UID_Based_ID.new('ehr::test-1')
|
---|
| 16 | links = Set.new([uid])
|
---|
| 17 | assert_nothing_raised(Exception){
|
---|
[162] | 18 | @data_structure = OpenEHR::RM::Data_Structures::Data_Structure.new(:archetype_node_id => 'test',
|
---|
| 19 | :name => name,
|
---|
| 20 | :links => links) }
|
---|
[129] | 21 | end
|
---|
| 22 |
|
---|
| 23 | def test_init
|
---|
| 24 | assert_instance_of OpenEHR::RM::Data_Structures::Data_Structure, @data_structure
|
---|
| 25 | end
|
---|
| 26 |
|
---|
| 27 | def test_data_structure
|
---|
| 28 | assert_raise(NotImplementedError){@data_structure.as_hierarchy}
|
---|
| 29 | end
|
---|
| 30 | end
|
---|
[291] | 31 |
|
---|
| 32 | class RmDataStructureItemStructureTest < Test::Unit::TestCase
|
---|
| 33 | def setup
|
---|
| 34 | assert_nothing_raised(Exception){
|
---|
| 35 |
|
---|
| 36 | end
|
---|
| 37 |
|
---|
| 38 | def test_init
|
---|
| 39 | end
|
---|
| 40 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.