Sha256: 84375b97e1d6e6e4f04faa0d10de70b855ba5cb5d4cd1a41518171e7c4dcc606
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
type_test(AutoC::List, :IntList, :int) do setup %~#{type} t;~ cleanup %~#{dtor}(&t);~ test :create, %~ #{ctor}(&t); TEST_TRUE( #{empty}(&t) ); TEST_EQUAL( #{size}(&t), 0 ); ~ setup %~ int i, c = 3; #{type} t1, t2; #{ctor}(&t1); #{ctor}(&t2); for(i = 0; i < c; ++i) { #{push}(&t1, i); #{push}(&t2, i); } ~ cleanup %~ #{dtor}(&t1); #{dtor}(&t2); ~ test :equal, %~ TEST_EQUAL( #{size}(&t1), #{size}(&t2) ); TEST_TRUE( #{equal}(&t1, &t2) ); #{push}(&t2, -1); TEST_NOT_EQUAL( #{size}(&t1), #{size}(&t2) ); TEST_FALSE( #{equal}(&t1, &t2) ); ~ end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
autoc-1.4 | test/test_int_list.rb |
autoc-1.3 | test/test_int_list.rb |