diff --git a/ex1/test_computeCost.m b/ex1/test_computeCost.m index a965f99..f17aadb 100644 --- a/ex1/test_computeCost.m +++ b/ex1/test_computeCost.m @@ -5,4 +5,8 @@ function test_computeCost () a = 7.0175; assert(x, a, epsilon); + x = computeCost( [1 2; 1 3; 1 4; 1 5], [7;6;5;4], [0.1;0.2] ); + a = 11.9450; + assert(x, a, epsilon); + endfunction