File: create_tmp.rb

package info (click to toggle)
ruby-netcdf 0.8.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,428 kB
  • sloc: ansic: 3,952; ruby: 1,843; makefile: 6; csh: 6
file content (19 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'test/unit'
require 'numru/netcdf'
include NumRu
class CreateTMP < Test::Unit::TestCase
  def setup
    @file = NetCDF.create_tmp
    @file.def_dim('x',5)
    @file.put_att("history", __FILE__ )
  end
  def teardown
    @file.close
    GC.start
  end
  def test_create_tmp
    assert_equal @file.att("history").get, __FILE__
    # print "environment variable TEMP ="+(ENV['TEMP'] || '')+"\n"
    # file2 = @file
  end
end