Sha256: ec3ea6667dbee6606a19d6099e5f1fac08cb49fb2f42c1c8eec67a61764716ff
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
require 'spec_helper' module Viiite describe Tms, "conversions" do let(:tms) { Tms.new(1.0, 2.0, 3.0, 4.0, 5.0) } specify '#to_s' do tms.to_s.should eq " 1.000000 2.000000 10.000000 ( 5.000000)" end specify '#to_a' do tms.to_a.should eq [1.0, 2.0, 3.0, 4.0, 5.0] end specify '#to_h' do tms.to_h.should eq :utime=>1.0, :stime=>2.0, :cutime=>3.0, :cstime=>4.0, :real=>5.0 end specify '#to_ruby_literal' do eval(tms.to_ruby_literal).should eq tms end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
viiite-0.2.0 | spec/unit/tms/test_conversions.rb |