Sha256: df2b283346e3b1f1a8b65f40f6503253b2081862fe1851df6865670280eb360a

Contents?: true

Size: 414 Bytes

Versions: 13

Compression:

Stored size: 414 Bytes

Contents

require_relative 'helper'


class TestStruct < Test::Unit::TestCase

  def setup()
    @x = Rucy::Tester::Struct.new
  end

  def test_default_value_is_0()
    assert_equal 0, @x.num
  end

  def test_get_set_num()
    @x.num = 1
    assert_equal 1, @x.num
  end

  def test_dup()
    assert_equal 0, @x.num
    x = @x.dup
    @x.num = 1
    assert_equal 1, @x.num
    assert_equal 0, x.num
  end

end# TestStruct

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rucy-0.3 test/test_struct.rb
rucy-0.2.1 test/test_struct.rb
rucy-0.2 test/test_struct.rb
rucy-0.1.44 test/test_struct.rb
rucy-0.1.43 test/test_struct.rb
rucy-0.1.42 test/test_struct.rb
rucy-0.1.41 test/test_struct.rb
rucy-0.1.40 test/test_struct.rb
rucy-0.1.39 test/test_struct.rb
rucy-0.1.38 test/test_struct.rb
rucy-0.1.37 test/test_struct.rb
rucy-0.1.36 test/test_struct.rb
rucy-0.1.35 test/test_struct.rb