diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /tools/slang-unit-test/unit-test-free-list.cpp | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'tools/slang-unit-test/unit-test-free-list.cpp')
| -rw-r--r-- | tools/slang-unit-test/unit-test-free-list.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/slang-unit-test/unit-test-free-list.cpp b/tools/slang-unit-test/unit-test-free-list.cpp index d6c8b47a7..80cd01dc1 100644 --- a/tools/slang-unit-test/unit-test-free-list.cpp +++ b/tools/slang-unit-test/unit-test-free-list.cpp @@ -1,15 +1,13 @@ // unit-test-free-list.cpp #include "../../source/core/slang-free-list.h" +#include "../../source/core/slang-list.h" +#include "../../source/core/slang-random-generator.h" +#include "tools/unit-test/slang-unit-test.h" #include <stdio.h> #include <stdlib.h> -#include "tools/unit-test/slang-unit-test.h" - -#include "../../source/core/slang-random-generator.h" -#include "../../source/core/slang-list.h" - using namespace Slang; SLANG_UNIT_TEST(freeList) @@ -24,7 +22,7 @@ SLANG_UNIT_TEST(freeList) for (int i = 0; i < 1000; i++) { const int numAlloc = randGen.nextInt32UpTo(20); - + for (int j = 0; j < numAlloc; j++) { int* ptr = (int*)freeList.allocate(); @@ -50,4 +48,3 @@ SLANG_UNIT_TEST(freeList) } } } - |
