Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
school
git
basic-practice
Commits
810ee518
Commit
810ee518
authored
Jan 18, 2017
by
Sylvain Arreckx
Browse files
make test more general.
parent
8d648e50
Changes
1
Show whitespace changes
Inline
Side-by-side
test.m
View file @
810ee518
...
...
@@ -2,9 +2,9 @@
addpath
(
genpath
(
pwd
))
% add this foldeand r all subfolders to the path
c
=
addTwoNumbers_
syarra
(
1
,
1
);
% 1 + 1
c
=
addTwoNumbers_
myName
(
1
,
1
);
% 1 + 1
d
=
multiplyTwoNumbers_
syarra
(
c
,
c
);
% 2 * 2
d
=
multiplyTwoNumbers_
myName
(
c
,
c
);
% 2 * 2
% test my sqrt function
assert
(
sqrt_
syarra
(
d
)
==
sqrt
(
d
))
assert
(
sqrt_
myName
(
d
)
==
sqrt
(
d
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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