From 91b7e05072f2bf61cfa442c533d24f041952df78 Mon Sep 17 00:00:00 2001 From: metric-space Date: Sat, 12 Feb 2022 02:42:13 -0500 Subject: [PATCH] Change name of test generator --- nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs | 6 ++++-- nalgebra-lapack/tests/linalg/qz.rs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs b/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs index ab678bf3..b0d9777c 100644 --- a/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs +++ b/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs @@ -8,13 +8,15 @@ use crate::proptest::*; use proptest::{prop_assert, prop_compose, proptest}; prop_compose! { -fn f64_squares() (n in PROPTEST_MATRIX_DIM) (a in matrix(PROPTEST_F64,n,n), b in matrix(PROPTEST_F64,n,n)) -> (DMatrix, DMatrix){ + fn f64_dynamic_dim_squares() + (n in PROPTEST_MATRIX_DIM) + (a in matrix(PROPTEST_F64,n,n), b in matrix(PROPTEST_F64,n,n)) -> (DMatrix, DMatrix){ (a,b) }} proptest! { #[test] - fn ge((a,b) in f64_squares()){ + fn ge((a,b) in f64_dynamic_dim_squares()){ let a_c = a.clone().map(|x| Complex::new(x, 0.0)); let b_c = b.clone().map(|x| Complex::new(x, 0.0)); diff --git a/nalgebra-lapack/tests/linalg/qz.rs b/nalgebra-lapack/tests/linalg/qz.rs index f70f1c9e..c7a702ca 100644 --- a/nalgebra-lapack/tests/linalg/qz.rs +++ b/nalgebra-lapack/tests/linalg/qz.rs @@ -5,13 +5,15 @@ use crate::proptest::*; use proptest::{prop_assert, prop_compose, proptest}; prop_compose! { -fn f64_squares() (n in PROPTEST_MATRIX_DIM) (a in matrix(PROPTEST_F64,n,n), b in matrix(PROPTEST_F64,n,n)) -> (DMatrix, DMatrix){ + fn f64_dynamic_dim_squares() + (n in PROPTEST_MATRIX_DIM) + (a in matrix(PROPTEST_F64,n,n), b in matrix(PROPTEST_F64,n,n)) -> (DMatrix, DMatrix){ (a,b) }} proptest! { #[test] - fn qz((a,b) in f64_squares()) { + fn qz((a,b) in f64_dynamic_dim_squares()) { let qz = QZ::new(a.clone(), b.clone()); let (vsl,s,t,vsr) = qz.clone().unpack();