Changeset 315 for ruby/trunk/lib/adl_parser/test/scanner_test.rb
- Timestamp:
- Oct 12, 2009, 3:56:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/adl_parser/test/scanner_test.rb
r307 r315 34 34 assert_equal :V_QUALIFIED_TERM_CODE_REF,sym 35 35 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 36 47 end 37 48 end … … 76 87 end 77 88 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 78 100 end 79 101 … … 102 124 assert_equal "string",val 103 125 end 126 @scanner.scan("\"1605E211E9BFB4093A72CCE7A9792FF9\"") do |sym, val| 127 assert_equal :V_STRING,sym 128 assert_equal "1605E211E9BFB4093A72CCE7A9792FF9",val 129 end 104 130 end 105 131 end
Note:
See TracChangeset
for help on using the changeset viewer.