Sha256: 1fd0ce0ee38db1010c8163cf1d69a51ea47b527dc6843ed31a552a8313638237
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' context "Allocation Strategies" do def setup if !defined?(@@alloc_strat_built) super @@alloc_strat_built = true Extension.new "alloc_strats" do |e| e.sources full_dir("headers/alloc_strats.h") node = e.namespace "alloc_strats" end end end # The test here is simple because if the allocation # strategies aren't properly defined, the extension # won't even compile. GCC will complain about trying to # instantiate an object with a non-public constructor # and it all dies. specify "properly figures out what allocation to do" do assert_nothing_raised LoadError do require 'alloc_strats' end # Private constructor, public destructor assert defined?(NoConstructor) # Private constructor and destructor assert defined?(Neither) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbplusplus-0.9 | test/allocation_strategies_test.rb |