Sha256: bdcf6fb74a92a4b27cc2f5c57f57bcc0f03310b3b44b7e912304eb5c1c29e145

Contents?: true

Size: 473 Bytes

Versions: 36

Compression:

Stored size: 473 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../../..', 'test_helper.rb')
require 'rbbt/util/python'
require 'rbbt/util/python/util'

class TestPythonUtil < Test::Unit::TestCase

  def test_tuple
    tsv = TSV.setup([], :key_field => "Key", :fields => %w(Value1 Value2), :type => :list)
    tsv["k1"] = %w(V1_1 V2_1)
    tsv["k2"] = %w(V1_2 V2_2)
    df = RbbtPython.tsv2df(tsv)
    new_tsv = RbbtPython.df2tsv(df)
    assert_equal tsv, new_tsv
  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
rbbt-util-5.35.1 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.27 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.26 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.25 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.24 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.23 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.22 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.21 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.20 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.18 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.17 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.16 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.15 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.14 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.13 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.12 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.11 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.10 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.9 test/rbbt/util/python/test_util.rb
rbbt-util-5.34.8 test/rbbt/util/python/test_util.rb