Sha256: 917c225d590b182ade8065f5906786cbddefe5aa53ab203b256fa92cc58eef7b
Contents?: true
Size: 486 Bytes
Versions: 7
Compression:
Stored size: 486 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require 'helper' class TC_Setting < Test::Unit::TestCase def setup @s = VaspUtils::Setting.new("test/setting/dot.vasputils") end def test_initialize assert_raise(Errno::ENOENT){VaspUtils::Setting.new("not_exist_file")} end def test_get assert_raise(VaspUtils::Setting::NoEntryError){@s["no_entory_key"]} assert_equal("/home/ippei/opt/vasp/potcar/potpaw_PBE.52", @s["potcar_dir"]) end end
Version data entries
7 entries across 7 versions & 1 rubygems