Last change
on this file since 23 was 4, checked in by KOBAYASHI, Shinji, 16 years ago |
restructuring repository tree
|
File size:
439 bytes
|
Line | |
---|
1 | #$:.unshift File.join(File.dirname(__FILE__))
|
---|
2 |
|
---|
3 | require 'lib/cparser.rb'
|
---|
4 | require 'test/unit'
|
---|
5 |
|
---|
6 | class CADLParserTest < Test::Unit::TestCase
|
---|
7 | def setup
|
---|
8 | @parser = ::OpenEHR::CADLParser.new
|
---|
9 | end
|
---|
10 |
|
---|
11 | def test_init
|
---|
12 | assert_instance_of ::OpenEHR::CADLParser,@parser
|
---|
13 | end
|
---|
14 |
|
---|
15 | def test_parse
|
---|
16 | vital_signs = File.read('tests/vital_signs.cadl')
|
---|
17 | assert_nothing_raised do
|
---|
18 | @parser.parse(vital_signs, 'vital_signs')
|
---|
19 | end
|
---|
20 | end
|
---|
21 |
|
---|
22 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.