parent
4e6082533c
commit
c10616c46e
@ -98,7 +98,7 @@ macro_rules! assert_almost_eq {
|
||||
#[macro_export]
|
||||
macro_rules! concatenate {
|
||||
( $name:ident, $([$estimator:ident, $statistic:ident]),+ ) => {
|
||||
concatenate!( $name, $([$estimator, $statistic, $statistic]),* )
|
||||
concatenate!( $name, $([$estimator, $statistic, $statistic]),* );
|
||||
};
|
||||
( $name:ident, $( [$estimator:ident, $field:ident, $($statistic:ident),+] ),+ ) => {
|
||||
struct $name {
|
||||
|
@ -4,14 +4,12 @@
|
||||
|
||||
extern crate core;
|
||||
|
||||
use average::Estimate;
|
||||
use average::{Estimate, Min, Max};
|
||||
|
||||
concatenate!(MinMax, [Min, min], [Max, max]);
|
||||
|
||||
#[test]
|
||||
fn concatenate_simple() {
|
||||
use average::{Min, Max};
|
||||
|
||||
concatenate!(MinMax, [Min, min], [Max, max]);
|
||||
|
||||
{
|
||||
let mut s = MinMax::new();
|
||||
for i in 1..6 {
|
||||
|
Loading…
Reference in New Issue
Block a user