Sha256: 4e7509d2fb42a1693e48475dc701f1b6bd4232e1ad0c6b38f5d9b06869531757
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
require 'test/unit' require 'html/template/pro' class TestRealloc < Test::Unit::TestCase def test_realloc mult = 10 tests = 30 t = HTML::Template::Pro.new( :filename => 'templates-Pro/test_malloc.tmpl', :debug=>0 ) 25.step(25+tests*mult-1, mult) do |x| txt = 'xxxxxxxxxx' * x t.param(:text => txt) assert_equal((txt +"\n"), t.output) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
html-template-pro-0.0.3 | test/test_realloc.rb |
html-template-pro-0.0.2 | test/test_realloc.rb |
html-template-pro-0.0.1 | test/test_realloc.rb |