Ignore:
Timestamp:
Oct 29, 2009, 1:58:34 AM (14 years ago)
Author:
Tatsukawa, Akimichi
Message:

start implementing semantic function in ADL parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/adl_parser/test/parser_test.rb

    r323 r326  
    1010  end
    1111
     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
    1222  must "openEHR-EHR-CLUSTER.exam-uterus.v1.adl be properly parsed" do
    1323    file =  File.read("#{TEST_ROOT_DIR}/adl/openEHR-EHR-CLUSTER.exam-uterus.v1.adl")
     
    157167    end
    158168  end
    159 
    160   must "openEHR-EHR-SECTION.reason_for_encounter.v1.adl be properly parsed" do
    161     file =  File.read("#{TEST_ROOT_DIR}/adl/openEHR-EHR-SECTION.reason_for_encounter.v1.adl")
    162     assert_nothing_raised do
    163       ast = @parser.parse(file, 'openEHR-EHR-SECTION.reason_for_encounter.v1')
    164       assert_instance_of OpenEhr::RM::Support::Identification::ArchetypeID, ast.archetype_id
    165     end
    166   end
    167 
    168169
    169170
     
    298299    end
    299300  end
    300 
    301301end
Note: See TracChangeset for help on using the changeset viewer.