From 4b0b37596552277cd6417fe9c824bc2be9b4f3ca Mon Sep 17 00:00:00 2001 From: Arafatk Date: Sat, 27 Feb 2016 18:59:25 +0530 Subject: [PATCH] Correcting Load error in Spec Tests --- spec/math_spec.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/spec/math_spec.rb b/spec/math_spec.rb index f288a21c..3dc1ff72 100644 --- a/spec/math_spec.rb +++ b/spec/math_spec.rb @@ -342,9 +342,13 @@ begin require 'nmatrix/atlas' + rescue LoadError + puts "atlas plugin is not available" + end + + begin expect(a.pinv).to be_within(err).of(b) expect(a.dot(a.pinv)).to be_within(err).of(c) - # a * a.pinv = Indentity matrix if a is a square matrix rescue NotImplementedError pending "Suppressing a NotImplementedError when the lapacke or atlas plugin is not available" end @@ -356,7 +360,11 @@ begin require 'nmatrix/atlas' - # These are the properties of a psuedo inverse matrix + rescue LoadError + puts "atlas plugin is not available" + end + + begin expect(a.dot(b.dot(a))).to be_within(err).of(a) expect(b.dot(a.dot(b))).to be_within(err).of(b) rescue NotImplementedError