Changeset 318 for ruby/trunk/lib/adl_parser/test/scanner_test.rb
- Timestamp:
- Oct 14, 2009, 3:49:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/adl_parser/test/scanner_test.rb
r315 r318 98 98 end 99 99 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 100 107 end 101 108 … … 124 131 assert_equal "string",val 125 132 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 126 139 @scanner.scan("\"1605E211E9BFB4093A72CCE7A9792FF9\"") do |sym, val| 127 140 assert_equal :V_STRING,sym … … 129 142 end 130 143 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 131 151 end
Note:
See TracChangeset
for help on using the changeset viewer.