From fa3e3bdc52c5e1502172656ad7ff151b52bef5b9 Mon Sep 17 00:00:00 2001 From: Harry Moreno Date: Sat, 8 Apr 2017 21:16:06 -0400 Subject: [PATCH] Document running test suite * enhance transpose test --- README.md | 5 ++++- test_linear_algebra.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b12ba2f..ad74868 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,7 @@ Python implementation of Deep Learning book http://www.deeplearningbook.org/ -Ian Goodfellow, Yoshua Bengio and Aaron Courville, MIT Press, 2016 \ No newline at end of file +Ian Goodfellow, Yoshua Bengio and Aaron Courville, MIT Press, 2016 + +## Running tests +`$ python -m unittest discover` diff --git a/test_linear_algebra.py b/test_linear_algebra.py index 38f2498..29a22b6 100644 --- a/test_linear_algebra.py +++ b/test_linear_algebra.py @@ -4,9 +4,9 @@ class TestLinearAlgebra(TestCase): def test_transpose(self): - A = [[1, 2], [3, 4]] + A = [[1, 2, 3], [4, 5, 6]] actual = transpose(A) - expected = [[1, 3], [2, 4]] + expected = [[1, 4], [2, 5], [3, 6]] self.assertEqual(actual, expected) def test_plus(self):