leetcode/tests/test_338.cpp
2024-09-16 08:56:26 +08:00

12 lines
204 B
C++

//
// 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));
}