Sha256: 743aa3fe6da3e3c3fdda20d8516ebe816021b94703fbf8517cc609541d0f82fc
Contents?: true
Size: 575 Bytes
Versions: 44
Compression:
Stored size: 575 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb') require 'rbbt/util/R' class TestR < Test::Unit::TestCase def _test_sum assert_equal "6", R.run('cat(3+3)').read.split(/\n/).last end def _test_tsv_R tsv = TSV.setup({:a => 1, :b => 2}) tsv2 = tsv.R <<-EOF data = data + 1 EOF assert_equal "2", tsv2["a"].first end def test_format_tsv tsv = TSV.setup({"a" => [1], "b" => [2]}, :type => :list, :key_field => "Letter", :fields => ["Number"]) assert tsv.transpose("Field").include? "Number" end end
Version data entries
44 entries across 44 versions & 1 rubygems