Main file to test the Array class template.
[詳解]
#include "Array.hpp"
#include <iostream>
#include <string>
[ソースコード]
Main file to test the Array class template.
main.cpp に定義があります。
◆ main()
The main entry point of the program.
This function calls all the test functions to demonstrate the functionality of the Array class.
- 戻り値
- int Returns 0 upon successful execution.
main.cpp の 165 行目に定義があります。
◆ test_const_array()
void test_const_array |
( |
| ) |
|
◆ test_copy_and_assignment()
void test_copy_and_assignment |
( |
| ) |
|
Tests the copy constructor and assignment operator.
main.cpp の 66 行目に定義があります。
◆ test_default_constructor()
void test_default_constructor |
( |
| ) |
|
Tests the default constructor of the Array class.
main.cpp の 25 行目に定義があります。
◆ test_out_of_bounds()
void test_out_of_bounds |
( |
| ) |
|
Tests out-of-bounds access to ensure exceptions are thrown.
main.cpp の 114 行目に定義があります。
◆ test_uint_constructor()
void test_uint_constructor |
( |
| ) |
|
Tests the constructor that takes an unsigned int as a parameter.
main.cpp の 42 行目に定義があります。