This commit is contained in:
2024-09-16 08:56:26 +08:00
parent 5ffc8c8eb0
commit 2cdaeb0e65
4 changed files with 54 additions and 0 deletions

12
tests/test_338.cpp Normal file
View File

@@ -0,0 +1,12 @@
//
// Created by aurora on 2024/9/16.
//
#include <gtest/gtest.h>
#include <solution/338.h>
TEST(CountingBits, 1)
{
int size = 0;
int ans[] = {0, 1, 1};
EXPECT_EQ(ans, countBits(2, &size));
}