Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marcus M. Darden
eecs281_project0
Commits
71081f05
Commit
71081f05
authored
Sep 10, 2015
by
Marcus M. Darden
Browse files
Add a test driver for functions module.
parent
87d7cbc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
test_functions.cpp
0 → 100644
View file @
71081f05
// test_functions.cpp
//
// The Makefile expects that the project solution has main() in a file
// named project*.cpp. For your own testing purposes, .cpp files that
// begin with 'test' can include a main(), that will not conflict with
// the project solution main(). Also, the test*.cpp files will not be
// included in any submission archives.
//
// Tests can be built in two ways:
// $ make test_functions // Make the test in test_functions.cpp with all
// // other source (and header) files.
// $ make alltests // Make all tests in test*.cpp with all other
// // source (and header) files.
#include "functions.h"
int
main
()
{
calculate
(
2
,
2
);
calculate
(
11
,
31
);
return
0
;
}
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