Sha256: 7a3833b6e30eed8af9fb227a680c44bb765a783a61f0e15db197d09842dcb4b9
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
=begin * Description: Test Mdcodes methods * Author: Josh Bradley * Date: 2014-11-07 * License: Public Domain =end require 'minitest/autorun' require File.join(File.dirname(__FILE__),'..','lib', 'adiwg-mdcodes.rb') class TestMdcodes < Minitest::Test def test_yaml assert_silent { yaml = YAML.load_file(ADIWG::Mdcodes.getYamlPath) assert_instance_of(Hash, yaml, failure_message = 'Could not parse YAML.') } end def test_getCodeLists assert_instance_of(Hash,ADIWG::Mdcodes.getCodeLists) end def test_getCodeList yaml = ADIWG::Mdcodes.getCodeLists key = yaml.keys[0] assert_instance_of(Hash,ADIWG::Mdcodes.getCodeList(key)) end def test_getCodeNames assert_instance_of(Hash,ADIWG::Mdcodes.getCodeNames) end def test_getCodeName yaml = ADIWG::Mdcodes.getCodeLists key = yaml.keys[0] assert_instance_of(Hash,ADIWG::Mdcodes.getCodeName(key)) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdcodes-0.2.1 | test/tc_mdcodes.rb |
adiwg-mdcodes-0.2.0 | test/tc_mdcodes.rb |