Sha256: 0828ad73c0df078fd70e29cc9420976e5a322d7e8a5c6fc10fba3f98fbd52ea2
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
require 'test_helper' require 'benchmark' class Mathematical::BasicTest < Test::Unit::TestCase def test_it_handles_big_files assert_nothing_raised do big_file = File.read('test/mathematical/fixtures/performance/big_file.text') speed = Benchmark.realtime do MathToItex(big_file).convert { |equation| Mathematical.new.render(equation) } end assert_operator speed, :<=, 5 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mathematical-1.1.1 | test/mathematical/performance_test.rb |
mathematical-1.1.0 | test/mathematical/performance_test.rb |
mathematical-1.0.0 | test/mathematical/performance_test.rb |