]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/test/maasha/test_math_aux.rb
rewrite of FASTQ internals
[biopieces.git] / code_ruby / test / maasha / test_math_aux.rb
index 29a0facfd49cc4baa001627ae230455222d17eb0..8ee576fd1aa0959be6e958f03daf5cd18a60f119 100755 (executable)
@@ -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