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
c44134a2
Commit
c44134a2
authored
Sep 11, 2015
by
Marcus M. Darden
Browse files
Add some tests from OH.
parent
328ba4c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
test14.cpp
0 → 100644
View file @
c44134a2
// test_class.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_class // Make the test in test_class.cpp with all other
// // source (and header) files.
// $ make alltests // Make all tests in test*.cpp with all other
// // source (and header) files.
#include "class.h"
int
main
()
{
// Stack
Class
a
(
0
,
0
);
a
.
display
();
// Heap
Class
*
b
=
new
Class
(
1
,
1
);
b
->
display
();
delete
b
;
return
0
;
}
test_another.cpp
0 → 100644
View file @
c44134a2
// test_class.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_class // Make the test in test_class.cpp with all other
// // source (and header) files.
// $ make alltests // Make all tests in test*.cpp with all other
// // source (and header) files.
#include "class.h"
int
main
()
{
// Stack
Class
a
(
0
,
0
);
a
.
display
();
// Heap
Class
*
b
=
new
Class
(
1
,
1
);
b
->
display
();
delete
b
;
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