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

Version Path
vasputils-0.1.7 test/test_setting.rb
vasputils-0.1.6 test/test_setting.rb
vasputils-0.1.5 test/test_setting.rb
vasputils-0.1.4 test/test_setting.rb
vasputils-0.1.3 test/test_setting.rb
vasputils-0.1.2 test/test_setting.rb
vasputils-0.1.1 test/test_setting.rb