Sha256: e85eade800de2b836ea12a87b37fb7d25ebcb1e1d212c5e6e1ebd10ff08dbc34
Contents?: true
Size: 887 Bytes
Versions: 7
Compression:
Stored size: 887 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require "pp" require "helper" class TC_Xdatcar < Test::Unit::TestCase def setup @x00 = VaspUtils::Xdatcar.load_file('test/xdatcar/XDATCAR') end def test_load_file assert_equal('Untitled ', @x00.comment) assert_equal(1.0, @x00.scale) assert_equal( [ [3.212500 , 0.000000 , 0.000000], [-1.606250, 2.782107, 0.000000], [0.000000 , 0.000000 , 5.213200], ], @x00.axes ) assert_equal(['Mg'] , @x00.elements) assert_equal([2] , @x00.nums_elements) assert_equal( [ [ [0.33333334, 0.66666669, 0.25000000], [0.66666663, 0.33333331, 0.75000000], ], [ [0.33333334, 0.66666669, 0.25000000], [0.66666663, 0.33333331, 0.75000000], ] ], @x00.steps_positions) end end
Version data entries
7 entries across 7 versions & 1 rubygems