Changeset 326 for ruby/trunk/lib/adl_parser/test/parser_test.rb
- Timestamp:
- Oct 29, 2009, 1:58:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/adl_parser/test/parser_test.rb
r323 r326 10 10 end 11 11 12 13 must "openEHR-EHR-SECTION.reason_for_encounter.v1.adl be properly parsed" do 14 file = File.read("#{TEST_ROOT_DIR}/adl/openEHR-EHR-SECTION.reason_for_encounter.v1.adl") 15 assert_nothing_raised do 16 ast = @parser.parse(file, 'openEHR-EHR-SECTION.reason_for_encounter.v1') 17 assert_instance_of OpenEhr::RM::Support::Identification::ArchetypeID, ast.archetype_id 18 assert_instance_of OpenEhr::AM::Archetype::Ontology::ARCHETYPE_ONTOLOGY, ast.ontology 19 end 20 end 21 12 22 must "openEHR-EHR-CLUSTER.exam-uterus.v1.adl be properly parsed" do 13 23 file = File.read("#{TEST_ROOT_DIR}/adl/openEHR-EHR-CLUSTER.exam-uterus.v1.adl") … … 157 167 end 158 168 end 159 160 must "openEHR-EHR-SECTION.reason_for_encounter.v1.adl be properly parsed" do161 file = File.read("#{TEST_ROOT_DIR}/adl/openEHR-EHR-SECTION.reason_for_encounter.v1.adl")162 assert_nothing_raised do163 ast = @parser.parse(file, 'openEHR-EHR-SECTION.reason_for_encounter.v1')164 assert_instance_of OpenEhr::RM::Support::Identification::ArchetypeID, ast.archetype_id165 end166 end167 168 169 169 170 … … 298 299 end 299 300 end 300 301 301 end
Note:
See TracChangeset
for help on using the changeset viewer.