test_myName.m 308 Bytes
Newer Older
Laurent Heirendt's avatar
Laurent Heirendt committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% Test file

c = addTwoNumbers_myName(1, 2)

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

% d = multiplyTwoNumbers_myName(c, c)

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

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