Ignore:
Timestamp:
Oct 12, 2009, 3:56:13 PM (15 years ago)
Author:
Tatsukawa, Akimichi
Message:

adl_scanner should properly change cADL or dADL scanners

File:
1 edited

Legend:

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

    r307 r315  
    3434      assert_equal :V_QUALIFIED_TERM_CODE_REF,sym
    3535      assert_equal "ICD10AM(1998)::F23",val
     36    end
     37  end
     38
     39  must "assert ADLScanner scanner scan V_STRING" do
     40    @scanner.scan("\"string\"") do |sym, val|
     41      assert_equal :V_STRING,sym
     42      assert_equal "string",val
     43    end
     44    @scanner.scan("\"1605E211E9BFB4093A72CCE7A9792FF9\"") do |sym, val|
     45      assert_equal :V_STRING,sym
     46      assert_equal "1605E211E9BFB4093A72CCE7A9792FF9",val
    3647    end
    3748  end
     
    7687    end
    7788  end
     89
     90  must "assert CADLScanner scanner scan V_STRING" do
     91    @scanner.scan("\"string\"") do |sym, val|
     92      assert_equal :V_STRING,sym
     93      assert_equal "string",val
     94    end
     95    @scanner.scan("\"1605E211E9BFB4093A72CCE7A9792FF9\"") do |sym, val|
     96      assert_equal :V_STRING,sym
     97      assert_equal "1605E211E9BFB4093A72CCE7A9792FF9",val
     98    end
     99  end
    78100end
    79101
     
    102124      assert_equal "string",val
    103125    end
     126    @scanner.scan("\"1605E211E9BFB4093A72CCE7A9792FF9\"") do |sym, val|
     127      assert_equal :V_STRING,sym
     128      assert_equal "1605E211E9BFB4093A72CCE7A9792FF9",val
     129    end
    104130  end
    105131end
Note: See TracChangeset for help on using the changeset viewer.