test.m 234 Bytes
Newer Older
1
2
3
4
% Test file

addpath(genpath(pwd))  % add this foldeand r all subfolders to the path

Sylvain Arreckx's avatar
Sylvain Arreckx committed
5
c = addTwoNumbers_myName(1, 1);  % 1 + 1
6

Sylvain Arreckx's avatar
Sylvain Arreckx committed
7
d = multiplyTwoNumbers_myName(c, c);  % 2 * 2 
8
9

% test my sqrt function
Sylvain Arreckx's avatar
Sylvain Arreckx committed
10
assert(sqrt_myName(d) == sqrt(d))