X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=code_ruby%2Ftest%2Fmaasha%2Ftest_math_aux.rb;h=8ee576fd1aa0959be6e958f03daf5cd18a60f119;hb=4c74f0aa5b9a572a2552767d4c4c0c15166e092a;hp=29a0facfd49cc4baa001627ae230455222d17eb0;hpb=5cd784d5cb9b87e5162dd592892d58e4382bd870;p=biopieces.git diff --git a/code_ruby/test/maasha/test_math_aux.rb b/code_ruby/test/maasha/test_math_aux.rb index 29a0fac..8ee576f 100755 --- a/code_ruby/test/maasha/test_math_aux.rb +++ b/code_ruby/test/maasha/test_math_aux.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -$:.unshift File.join(File.dirname(__FILE__),'..','lib') +$:.unshift File.join(File.dirname(__FILE__), '..', '..') # Copyright (C) 2011 Martin A. Hansen. @@ -26,15 +26,15 @@ $:.unshift File.join(File.dirname(__FILE__),'..','lib') # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< require 'test/unit' +require 'test/helper' require 'maasha/math_aux' -require 'pp' class MathTest < Test::Unit::TestCase - def test_dist_point2point_returns_correctly + test "Math.dist_point2point returns correctly" do assert_equal(1.5, Math.dist_point2point(1.0, 1.0, 1.0, 2.5)) end - def test_dist_point2line_returns_correctly + test "Math.dist_point2line returns correctly" do assert_equal(1.5, Math.dist_point2line( 3, 3, 0, 4.5, 5, 4.5)) end end