Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # encoding: UTF-8
- require 'test/unit'
- require '../common/polyedr'
- class TestHark < Test::Unit::TestCase
- def test_all
- goods = [ 1600.0, 4800.0, 4000.0 ];
- %w(ccc cube box babem king cow).each do |name|
- pee = Polyedr.new("../data/#{name}.geom");
- # pee.draw;
- assert_equal goods.shift.to_i, pee.harka.to_i;
- end
- end
- end
Add Comment
Please, Sign In to add comment