()
| 44 | |
| 45 | #[test] |
| 46 | fn test_chow_test() { |
| 47 | let min_length = 10usize; |
| 48 | let log_prices = log_prices(); |
| 49 | let stats = get_chow_type_stat(&log_prices, min_length).expect("chow stats"); |
| 50 | |
| 51 | assert_eq!(log_prices.len() - min_length * 2, stats.len()); |
| 52 | assert!((max(&stats) - 0.179).abs() < 0.001); |
| 53 | assert!((mean(&stats) + 0.653).abs() < 0.001); |
| 54 | assert!((stats[3] + 0.6649).abs() < 0.001); |
| 55 | } |
| 56 | |
| 57 | #[test] |
| 58 | fn test_chu_stinchcombe_white_test() { |
nothing calls this directly
no test coverage detected