Commit 2ff03310 authored by Matthew P. Russell's avatar Matthew P. Russell
Browse files

Update ArrayList_tests.cpp

parent 197ea4ef
......@@ -41,7 +41,7 @@ NB: The ArrayList code has bugs, so the tests will fail first on purpose!
/*
* constructor test 0 - make sure no fatal errors/memory leaks in the default constructor
*/
void constructor_0(){
void constructor_0() {
ArrayList list = ArrayList();
}
......@@ -49,7 +49,7 @@ void constructor_0(){
* constructor test 1 - make sure no items exist in the list upon construction
* note: given the provided code, this test should fail.
*/
void constructor_1(){
void constructor_1() {
ArrayList list = ArrayList();
assert(list.numitems() == 0);
}
......@@ -58,7 +58,7 @@ void constructor_1(){
* destructor test (destructor called implicitly)
* make sure no fatal errors/memory leaks in the destructor (based on default constructor)
*/
void destructor(){
void destructor() {
ArrayList list = ArrayList();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment