@@ -13,15 +13,15 @@ namespace zasm::tests
1313 constexpr const char str1[] = " hello" ;
1414 constexpr const char str2[] = " Hello" ;
1515
16- const auto id0 = pool.aquire (str1);
16+ const auto id0 = pool.acquire (str1);
1717 ASSERT_NE (id0, StringPool::Id::Invalid);
1818 ASSERT_EQ (pool.getLength (id0), std::size (str1) - 1 );
1919 ASSERT_EQ (pool.getRefCount (id0), 1 );
2020 const auto * cstr0 = pool.get (id0);
2121 ASSERT_NE (cstr0, nullptr );
2222 ASSERT_EQ (strcmp (cstr0, str1), 0 );
2323
24- const auto id1 = pool.aquire (str1);
24+ const auto id1 = pool.acquire (str1);
2525 ASSERT_NE (id1, StringPool::Id::Invalid);
2626 ASSERT_EQ (id1, id0);
2727 ASSERT_EQ (pool.getLength (id1), std::size (str1) - 1 );
@@ -30,7 +30,7 @@ namespace zasm::tests
3030 ASSERT_EQ (cstr1, cstr0);
3131 ASSERT_EQ (strcmp (cstr1, str1), 0 );
3232
33- const auto id2 = pool.aquire (str2);
33+ const auto id2 = pool.acquire (str2);
3434 ASSERT_NE (id2, StringPool::Id::Invalid);
3535 ASSERT_NE (id2, id1);
3636 ASSERT_EQ (pool.getLength (id2), std::size (str2) - 1 );
@@ -49,17 +49,17 @@ namespace zasm::tests
4949 constexpr const char str4[] = " hello4" ;
5050 constexpr const char str5[] = " hello..." ;
5151
52- const auto id0 = pool.aquire (str1);
52+ const auto id0 = pool.acquire (str1);
5353 ASSERT_NE (id0, StringPool::Id::Invalid);
5454 ASSERT_EQ (pool.getLength (id0), std::size (str1) - 1 );
5555 ASSERT_EQ (pool.getRefCount (id0), 1 );
5656
57- const auto id1 = pool.aquire (str2);
57+ const auto id1 = pool.acquire (str2);
5858 ASSERT_NE (id1, StringPool::Id::Invalid);
5959 ASSERT_EQ (pool.getLength (id1), std::size (str2) - 1 );
6060 ASSERT_EQ (pool.getRefCount (id1), 1 );
6161
62- const auto id2 = pool.aquire (str3);
62+ const auto id2 = pool.acquire (str3);
6363 ASSERT_NE (id2, StringPool::Id::Invalid);
6464 ASSERT_EQ (pool.getLength (id2), std::size (str3) - 1 );
6565 ASSERT_EQ (pool.getRefCount (id2), 1 );
@@ -68,13 +68,13 @@ namespace zasm::tests
6868 const auto * cstr0 = pool.get (id1);
6969 ASSERT_EQ (cstr0, nullptr );
7070
71- const auto id3 = pool.aquire (str4);
71+ const auto id3 = pool.acquire (str4);
7272 ASSERT_NE (id3, StringPool::Id::Invalid);
7373 ASSERT_EQ (id1, id3);
7474 ASSERT_EQ (pool.getLength (id3), std::size (str4) - 1 );
7575 ASSERT_EQ (pool.getRefCount (id3), 1 );
7676
77- const auto id4 = pool.aquire (str4);
77+ const auto id4 = pool.acquire (str4);
7878 ASSERT_NE (id4, StringPool::Id::Invalid);
7979 ASSERT_EQ (id4, id3);
8080 ASSERT_EQ (pool.getLength (id4), std::size (str4) - 1 );
@@ -83,7 +83,7 @@ namespace zasm::tests
8383 ASSERT_EQ (pool.release (id4), 1 );
8484 ASSERT_EQ (pool.release (id4), 0 );
8585
86- const auto id5 = pool.aquire (str5);
86+ const auto id5 = pool.acquire (str5);
8787 ASSERT_NE (id5, StringPool::Id::Invalid);
8888 ASSERT_EQ (id5, id1);
8989 ASSERT_EQ (pool.getLength (id5), std::size (str5) - 1 );
@@ -115,7 +115,7 @@ namespace zasm::tests
115115 ids.clear ();
116116 for (const auto & str : kInputStrings )
117117 {
118- const auto id = pool.aquire (str);
118+ const auto id = pool.acquire (str);
119119 ASSERT_NE (id, StringPool::Id::Invalid);
120120 ASSERT_EQ (pool.getLength (id), str.size ());
121121 ASSERT_EQ (pool.getRefCount (id), 1 );
0 commit comments