test_jenn.m 228 Bytes
Newer Older
Jennifer Modamio's avatar
Jennifer Modamio committed
1
2
3
4
5
6
7
8
9
10
% Test file

addpath(genpath(pwd))  % add this folder and all subfolders to the path

c = addTwoNumbers_jenn(1, 1);  % 1 + 1

d = multiplyTwoNumbers_jenn(c, c);  % 2 * 2 

% test my sqrt function
assert(sqrt_jenn(d) == sqrt(d))