@@ -463,6 +463,7 @@ mod tests {
463
463
use super :: * ;
464
464
use crate :: generate_blobs;
465
465
use approx:: { abs_diff_eq, assert_abs_diff_eq} ;
466
+ use lax:: error:: Error ;
466
467
use ndarray:: { array, concatenate, ArrayView1 , ArrayView2 , Axis } ;
467
468
use ndarray_linalg:: error:: LinalgError ;
468
469
use ndarray_linalg:: error:: Result as LAResult ;
@@ -568,7 +569,8 @@ mod tests {
568
569
assert ! (
569
570
match gmm. expect_err( "should generate an error with reg_covar being nul" ) {
570
571
GmmError :: LinalgError ( e) => match e {
571
- LinalgError :: Lapack ( _) => true ,
572
+ LinalgError :: Lapack ( Error :: LapackComputationalFailure { return_code: 2 } ) =>
573
+ true ,
572
574
_ => panic!( "should be a lapack error 2" ) ,
573
575
} ,
574
576
_ => panic!( "should be a linear algebra error" ) ,
@@ -596,7 +598,8 @@ mod tests {
596
598
assert ! (
597
599
match gmm. expect_err( "should generate an error with reg_covar being nul" ) {
598
600
GmmError :: LinalgError ( e) => match e {
599
- LinalgError :: Lapack ( _) => true ,
601
+ LinalgError :: Lapack ( Error :: LapackComputationalFailure { return_code: 1 } ) =>
602
+ true ,
600
603
_ => panic!( "should be a lapack error 1" ) ,
601
604
} ,
602
605
_ => panic!( "should be a linear algebra error" ) ,
0 commit comments