[python-dtcwt] 119/497: add test exposing Yscale bug
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.
commit ef21da65ebfdcc17acd9896d1aa9c4d97195c6e6
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Wed Nov 6 20:22:17 2013 +0000
add test exposing Yscale bug
The elements of Yscale are not correctly initialised.
---
tests/testxfm2.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/testxfm2.py b/tests/testxfm2.py
index 97595a4..168cc0a 100644
--- a/tests/testxfm2.py
+++ b/tests/testxfm2.py
@@ -34,6 +34,11 @@ def test_3d():
def test_simple_w_scale():
Yl, Yh, Yscale = dtwavexfm2(lena, include_scale=True)
+
+ assert len(Yscale) > 0
+ for x in Yscale:
+ assert x is not None
+
def test_odd_rows():
Yl, Yh = dtwavexfm2(lena[:509,:])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git
More information about the debian-science-commits
mailing list