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
473f13ad
Commit
473f13ad
authored
Jan 29, 2019
by
Alice Oldano
Browse files
test working correctly after necessary change done
parent
205f1b5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/suite/test_AliceOldano.m
View file @
473f13ad
% Test file
addpath
(
'/Users/alice.oldano/myNewDirectory/practice/src/firstCommit'
)
addpath
(
'/Users/alice.oldano/myNewDirectory/practice/src/secondCommit'
)
addpath
(
'/Users/alice.oldano/myNewDirectory/practice/src/thirdCommit'
)
c
=
addTwoNumbers_AliceOldano
(
1
,
2
)
% test if the addition function works as expected
...
...
@@ -11,5 +15,7 @@ d = multiplyTwoNumbers_AliceOldano(c, c)
assert
(
d
==
9
)
% Test for the homework
e
=
sqrt_AliceOldano
(
d
)
% test my sqrt function
assert
(
sqrt_AliceOldano
(
d
)
==
sqrt
(
d
)
)
assert
(
sqrt_AliceOldano
(
d
)
==
4.5
)
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