338
This commit is contained in:
12
tests/test_338.cpp
Normal file
12
tests/test_338.cpp
Normal 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));
|
||||
}
|
||||
Reference in New Issue
Block a user