test_myName.m 218 Bytes
Newer Older
1
2
% Test file

Laurent Heirendt's avatar
Laurent Heirendt committed
3
addpath(genpath('src/'))  % add this folder and all subfolders to the path
4

Laurent Heirendt's avatar
Laurent Heirendt committed
5
c = addTwoNumbers_myName(1, 2)
6

Laurent Heirendt's avatar
Laurent Heirendt committed
7
d = multiplyTwoNumbers_myName(c, c)
8
9

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