Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Nikola de Lange
git.practice
Commits
2a8ffeab
Commit
2a8ffeab
authored
Jan 22, 2019
by
Laurent Heirendt
✈
Browse files
change of test
parent
5836b527
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_myName.m
View file @
2a8ffeab
% Test file
addpath
(
genpath
(
pwd
))
% add this folder and all subfolders to the path
addpath
(
genpath
(
'src/'
))
% add this folder and all subfolders to the path
c
=
addTwoNumbers_myName
(
1
,
1
);
% 1 + 1
c
=
addTwoNumbers_myName
(
1
,
2
)
d
=
multiplyTwoNumbers_myName
(
c
,
c
)
;
% 2 * 2
d
=
multiplyTwoNumbers_myName
(
c
,
c
)
% test my sqrt function
assert
(
sqrt_myName
(
d
)
==
sqrt
(
d
))
%
assert(sqrt_myName(d) == sqrt(d))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment