Commit 810ee518 authored by Sylvain Arreckx's avatar Sylvain Arreckx
Browse files

make test more general.

parent 8d648e50
......@@ -2,9 +2,9 @@
addpath(genpath(pwd)) % add this foldeand r all subfolders to the path
c = addTwoNumbers_syarra(1, 1); % 1 + 1
c = addTwoNumbers_myName(1, 1); % 1 + 1
d = multiplyTwoNumbers_syarra(c, c); % 2 * 2
d = multiplyTwoNumbers_myName(c, c); % 2 * 2
% test my sqrt function
assert(sqrt_syarra(d) == sqrt(d))
assert(sqrt_myName(d) == sqrt(d))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment