Ignore:
Timestamp:
Oct 14, 2009, 3:49:28 AM (15 years ago)
Author:
Tatsukawa, Akimichi
Message:

successfully parsing all the adl files under http://www.openehr.org/svn/knowledge/archetypes/dev/adl/openehr/ehr directory

File:
1 edited

Legend:

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

    r315 r318  
    9898    end
    9999  end
     100
     101  must "assert CADLScanner scanner scan V_ISO8601_DURATION_CONSTRAINT_PATTERN" do
     102    @scanner.scan("PW") do |sym, val|
     103      assert_equal :V_ISO8601_DURATION_CONSTRAINT_PATTERN,sym
     104      assert_equal "PW",val
     105    end
     106  end
    100107end
    101108
     
    124131      assert_equal "string",val
    125132    end
     133
     134    @scanner.scan("\"2005-10-10\"") do |sym, val|
     135      assert_equal :V_STRING,sym
     136      assert_equal "2005-10-10",val
     137    end
     138
    126139    @scanner.scan("\"1605E211E9BFB4093A72CCE7A9792FF9\"") do |sym, val|
    127140      assert_equal :V_STRING,sym
     
    129142    end
    130143  end
     144
     145  must "assert DADLScanner scanner scan V_URI" do
     146    @scanner.scan("http://openEHR.org/Services") do |sym, val|
     147      assert_equal :V_URI,sym
     148      assert_equal "http://openEHR.org/Services",val
     149    end
     150  end
    131151end
Note: See TracChangeset for help on using the changeset viewer.