test_guadalupe.m 311 Bytes
Newer Older
Guadalupe Garcia's avatar
Final    
Guadalupe Garcia committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% Test file

c = addTwoNumbers_guadalupe(1, 2)

% test if the addition function works as expected
assert(c == 3)

d = multiplyTwoNumbers_guadalupe(c, c)

% test if the multiplication function works as expected
assert(d == 9)

% Test for the homework
% test my sqrt function
assert(sqrt_guadalupe(d) == sqrt(d))