Guest User

Untitled

a guest
Oct 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # encoding: UTF-8
  2. require 'test/unit'
  3. require '../common/polyedr'
  4.  
  5.  
  6. class TestHark < Test::Unit::TestCase
  7. def test_all
  8. goods = [ 1600.0, 4800.0, 4000.0 ];
  9. %w(ccc cube box babem king cow).each do |name|
  10. pee = Polyedr.new("../data/#{name}.geom");
  11. # pee.draw;
  12. assert_equal goods.shift.to_i, pee.harka.to_i;
  13. end
  14. end
  15. end
Add Comment
Please, Sign In to add comment