Sha256: 35e397ebe53fbaf03c72ac84c306b5c937c4f527236bf7c9d1932f34804f43a7

Contents?: true

Size: 499 Bytes

Versions: 28

Compression:

Stored size: 499 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "lib")

require "test/unit"
require "nmatrix_extensions"

class TestNmatrixExtensions < Test::Unit::TestCase

  def test_pretty_string(opts={})
    m = NMatrix.float(3,3).indgen
    result ="#        A      B      C\n" +
            "VAL   0.00   1.00   2.00\n" +
            "      3.00   4.00   5.00\n" +
            "      6.00   7.00   8.00"
    assert_equal(result, m.pretty_string(:col_header => %w[A B C], :row_header => %w[VAL]))
  end
end

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
ulla-0.9.9.2 test/test_nmatrix_extensions.rb
semin-egor-0.9.0 test/test_nmatrix_extensions.rb
semin-egor-0.9.1 test/test_nmatrix_extensions.rb
semin-egor-0.9.2 test/test_nmatrix_extensions.rb
semin-egor-0.9.3 test/test_nmatrix_extensions.rb
semin-ulla-0.9.3 test/test_nmatrix_extensions.rb
semin-ulla-0.9.4 test/test_nmatrix_extensions.rb
semin-ulla-0.9.5 test/test_nmatrix_extensions.rb
semin-ulla-0.9.6 test/test_nmatrix_extensions.rb
semin-ulla-0.9.7 test/test_nmatrix_extensions.rb
semin-ulla-0.9.8 test/test_nmatrix_extensions.rb
semin-ulla-0.9.9.1 test/test_nmatrix_extensions.rb
semin-ulla-0.9.9 test/test_nmatrix_extensions.rb
ulla-0.9.9.1 test/test_nmatrix_extensions.rb
ulla-0.9.9 test/test_nmatrix_extensions.rb
ulla-0.9.8 test/test_nmatrix_extensions.rb
egor-0.0.1 test/test_nmatrix_extensions.rb
egor-0.0.2 test/test_nmatrix_extensions.rb
egor-0.0.4 test/test_nmatrix_extensions.rb
egor-0.0.3 test/test_nmatrix_extensions.rb