statistical - bump rand dependency and fix testcase on x87
Peter Michael Green
2 years ago
|
0 |
rust-statistical (1.0.0-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* Package statistical 1.0.0 from crates.io using debcargo 2.5.0
|
|
4 |
* Relax rand dependency to allow 0.8
|
|
5 |
* Allow slightly different test result on x87
|
|
6 |
|
|
7 |
-- Peter Michael Green <plugwash@debian.org> Sat, 29 Jan 2022 18:18:44 +0000
|
|
8 |
|
0 | 9 |
rust-statistical (1.0.0-2) unstable; urgency=medium
|
1 | 10 |
|
2 | 11 |
* Package statistical 1.0.0 from crates.io using debcargo 2.5.0
|
8 | 8 |
|
9 | 9 |
Files: debian/*
|
10 | 10 |
Copyright:
|
11 | |
2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
|
|
11 |
2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
|
12 | 12 |
2018 Sylvestre Ledru <sylvestre@debian.org>
|
13 | 13 |
License: MIT
|
14 | 14 |
|
41 | 41 |
|
42 | 42 |
Files: debian/*
|
43 | 43 |
Copyright:
|
44 | |
2020-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
|
45 | |
2020-2021 Sylvestre Ledru <sylvestre@debian.org>
|
|
44 |
2020-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
|
|
45 |
2020-2022 Sylvestre Ledru <sylvestre@debian.org>
|
46 | 46 |
License: MIT
|
47 | 47 |
|
48 | 48 |
License: MIT
|
0 | |
Index: statistical/Cargo.toml
|
1 | |
===================================================================
|
2 | 0 |
--- statistical.orig/Cargo.toml
|
3 | 1 |
+++ statistical/Cargo.toml
|
4 | |
@@ -22,7 +22,7 @@ keywords = ["statistics", "statistical",
|
5 | |
license = "MIT"
|
6 | |
repository = "https://github.com/JeffBelgum/statistical"
|
|
2 |
@@ -24,3 +24,3 @@
|
7 | 3 |
[dependencies.num]
|
8 | 4 |
-version = "0.2"
|
9 | 5 |
+version = "0.4"
|
10 | 6 |
|
11 | |
[dependencies.rand]
|
12 | |
version = "0.7"
|
6 | 6 |
|
7 | 7 |
[dependencies.rand]
|
8 | 8 |
-version = "0.6"
|
9 | |
+version = "0.7"
|
|
9 |
+version = ">= 0.6, < 0.9"
|
0 | 0 |
bump-rand.diff
|
1 | 1 |
bump-num.diff
|
|
2 |
x87-test.diff
|
|
0 |
Index: statistical/src/univariate_.rs
|
|
1 |
===================================================================
|
|
2 |
--- statistical.orig/src/univariate_.rs
|
|
3 |
+++ statistical/src/univariate_.rs
|
|
4 |
@@ -217,7 +217,10 @@ mod test {
|
|
5 |
#[test]
|
|
6 |
fn test_pkurtosis() {
|
|
7 |
let vec = vec![1.25, 1.5, 1.5, 1.75, 1.75, 2.5, 2.75, 4.5];
|
|
8 |
- assert_eq!(pkurtosis(&vec, None, None), 0.7794232987312579);
|
|
9 |
+ let result = pkurtosis(&vec, None, None);
|
|
10 |
+ //x87 gives a slightly different result, probablly due to excess precision.
|
|
11 |
+ if cfg!(all(target_arch = "x86", not(target_feature = "sse2"))) && (result == 0.7794232987312584) { return };
|
|
12 |
+ assert_eq!(result, 0.7794232987312579);
|
|
13 |
}
|
|
14 |
#[test]
|
|
15 |
fn test_standard_error_mean() {
|
0 | |
--- a/Cargo.toml
|
1 | |
+++ b/Cargo.toml
|
2 | |
@@ -21,8 +21,7 @@
|
3 | |
license = "MIT"
|
4 | |
repository = "https://gitlab.redox-os.org/redox-os/termion"
|
|
0 |
--- termion.orig/Cargo.toml
|
|
1 |
+++ termion/Cargo.toml
|
|
2 |
@@ -23,4 +23,3 @@
|
5 | 3 |
[dependencies.numtoa]
|
6 | |
-version = "0.1.0"
|
|
4 |
-version = "0.1"
|
7 | 5 |
-features = ["std"]
|
8 | 6 |
+version = "0.2"
|
9 | 7 |
[target."cfg(not(target_os = \"redox\"))".dependencies.libc]
|
10 | |
version = "0.2.8"
|
11 | |
[target."cfg(target_os = \"redox\")".dependencies.redox_syscall]
|