Skip to content
This repository
Browse code

Ruby tests

  • Loading branch information...
commit 8e9e843bc98b60fddc5cb83eeca4b661b80bbc15 1 parent 852a07e
Pjotr Prins authored April 11, 2009

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  src/mappings/swig/ruby/test/test_gsl.rb
6  src/mappings/swig/ruby/test/test_gsl.rb
@@ -8,9 +8,11 @@
8 8
         16, 18, 20, 18, 21
9 9
     ];
10 10
 
11  
-# result = Ascilib::gsl_stats_kurtosis(data, 1, 20);
12  
-# raise 'test failed' if result != 766
13 11
 result = Ascilib::Gsl.gsl_stats_mean([3,4,5,7],1,4);
14 12
 raise 'test failed' if result != 4.75
15 13
 
  14
+result = Ascilib::Gsl.gsl_stats_kurtosis(data, 1, 20);
  15
+result = (result*100).to_i
  16
+raise 'test failed' if result != -23
  17
+
16 18
 exit 0

0 notes on commit 8e9e843

Please sign in to comment.
Something went wrong with that request. Please try again.