Class: ODDB::MedData::ResultTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
ext/meddata/test/test_result.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) test_initialize



12
13
14
15
16
17
18
19
# File 'ext/meddata/test/test_result.rb', line 12

def test_initialize
  result = Result.new('bar', 'baz')
  assert_equal('bar', result.values)
  assert_equal('baz', result.ctl)
  result = Result.new(nil, nil)
  assert_nil(result.values)
  assert_nil(result.ctl)
end