Sha256: eeedbcceb886c608a5d170d3c700006c75ea3882db01e7b777ca711086156256
Contents?: true
Size: 383 Bytes
Versions: 14
Compression:
Stored size: 383 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 end
Version data entries
14 entries across 14 versions & 1 rubygems