Change name of test generator
This commit is contained in:
parent
b7fe6b9dc1
commit
91b7e05072
|
@ -8,13 +8,15 @@ use crate::proptest::*;
|
||||||
use proptest::{prop_assert, prop_compose, proptest};
|
use proptest::{prop_assert, prop_compose, proptest};
|
||||||
|
|
||||||
prop_compose! {
|
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<f64>, DMatrix<f64>){
|
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<f64>, DMatrix<f64>){
|
||||||
(a,b)
|
(a,b)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
proptest! {
|
proptest! {
|
||||||
#[test]
|
#[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 a_c = a.clone().map(|x| Complex::new(x, 0.0));
|
||||||
let b_c = b.clone().map(|x| Complex::new(x, 0.0));
|
let b_c = b.clone().map(|x| Complex::new(x, 0.0));
|
||||||
|
|
|
@ -5,13 +5,15 @@ use crate::proptest::*;
|
||||||
use proptest::{prop_assert, prop_compose, proptest};
|
use proptest::{prop_assert, prop_compose, proptest};
|
||||||
|
|
||||||
prop_compose! {
|
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<f64>, DMatrix<f64>){
|
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<f64>, DMatrix<f64>){
|
||||||
(a,b)
|
(a,b)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
proptest! {
|
proptest! {
|
||||||
#[test]
|
#[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 qz = QZ::new(a.clone(), b.clone());
|
||||||
let (vsl,s,t,vsr) = qz.clone().unpack();
|
let (vsl,s,t,vsr) = qz.clone().unpack();
|
||||||
|
|
Loading…
Reference in New Issue