blob: 8831b62cf4af59307297e11c43b65fba3f640142 [file] [log] [blame]
#include "../internal.h"
#include "utils.h"
#include <gtest/gtest.h>
TEST(TestSarray, Dup)
{
auto a = generate_test_sarray(3);
auto size = sarraylen(a);
EXPECT_EQ(size, 3);
auto b = sarraydup(a);
size_t i;
for (i = 0; i < 4; i++)
{
EXPECT_STREQ(a[i], b[i]);
}
sarrayfree(a);
sarrayfree(b);
}