Sha256: c2e1f4e5e666ff61ce64b4acdbf8efc8314062b16ea772b109d863b238983e45
Contents?: true
Size: 797 Bytes
Versions: 1
Compression:
Stored size: 797 Bytes
Contents
require 'paramix' require 'test/unit' class TC_Paramix_Nested_Simple < Test::Unit::TestCase # -- fixture ------------------------------ module M include Paramix::Parametric parameterized do |params| public :f do params[:p] end end end module N include Paramix::Parametric include M[:p=>"NMp"] end class I ; include N[] ; end class E ; extend N[] ; end class Ix ; include N[:p=>"IxNp"] ; end class Ex ; extend N[:p=>"ExNp"] ; end # -- tests -------------------------------- def test_include_if assert_equal( "NMp", I.new.f ) end def test_extend_ef assert_equal( "NMp", E.f ) end def test_include_ixf assert_equal( "NMp", I.new.f ) end def test_extend_exf assert_equal( "NMp", E.f ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paramix-2.0.0 | test/nested/test_nested_moot.rb |