- Adjusted Formatting of tests
- Finished map implementation and unit tests TODO: Threading
This commit is contained in:
@@ -23,26 +23,21 @@
|
||||
|
||||
#include <fennec/containers/array.h>
|
||||
|
||||
namespace fennec
|
||||
namespace fennec::test
|
||||
{
|
||||
|
||||
namespace test
|
||||
{
|
||||
inline void fennec_test_containers_array() {
|
||||
|
||||
inline void fennec_test_containers_array() {
|
||||
const char string[] = "Hello World!";
|
||||
array<char, sizeof(string)> arr1;
|
||||
array<char, sizeof(string)> arr2;
|
||||
strcpy(&arr1[0], string);
|
||||
strcpy(&arr2[0], string);
|
||||
|
||||
const char string[] = "Hello World!";
|
||||
array<char, sizeof(string)> arr1;
|
||||
array<char, sizeof(string)> arr2;
|
||||
strcpy(&arr1[0], string);
|
||||
strcpy(&arr2[0], string);
|
||||
|
||||
fennec_test_run(strcmp(&arr1[0], string), 0);
|
||||
fennec_test_run(strcmp(&arr2[0], string), 0);
|
||||
fennec_test_run(arr1 == arr2, true);
|
||||
}
|
||||
|
||||
}
|
||||
fennec_test_run(strcmp(&arr1[0], string), 0);
|
||||
fennec_test_run(strcmp(&arr2[0], string), 0);
|
||||
fennec_test_run(arr1 == arr2, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user