Sha256: 85ccd7f0b5ae15d727425a122215dbf013ea79dee570becd3e327c36945f6689

Contents?: true

Size: 440 Bytes

Versions: 13

Compression:

Stored size: 440 Bytes

Contents

# -*- coding: utf-8 -*-


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.1.34 test/test_struct.rb
rucy-0.1.33 test/test_struct.rb
rucy-0.1.32 test/test_struct.rb
rucy-0.1.31 test/test_struct.rb
rucy-0.1.30 test/test_struct.rb
rucy-0.1.29 test/test_struct.rb
rucy-0.1.28 test/test_struct.rb
rucy-0.1.27 test/test_struct.rb
rucy-0.1.26 test/test_struct.rb
rucy-0.1.25 test/test_struct.rb
rucy-0.1.24 test/test_struct.rb
rucy-0.1.23 test/test_struct.rb
rucy-0.1.22 test/test_struct.rb