Skip to content

Commit 5fd5b9d

Browse files
committed
Rename tests() -> test()
1 parent cf4c140 commit 5fd5b9d

File tree

8 files changed

+25
-28
lines changed

8 files changed

+25
-28
lines changed

libcxx/test/std/utilities/text_encoding/text_encoding.ctor/id.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ constexpr void test_unknown_other() {
5454
}
5555
}
5656

57-
constexpr bool tests() {
57+
constexpr bool test() {
5858
{
5959
// 2. Constructing an object with a valid id must set mib() and the name to the corresponding value.
6060
id_ctors();
@@ -76,8 +76,8 @@ int main(int, char**) {
7676
}
7777

7878
{
79-
tests();
80-
static_assert(tests());
79+
test();
80+
static_assert(test());
8181
}
8282

8383
return 0;

libcxx/test/std/utilities/text_encoding/text_encoding.ctor/string_view.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ constexpr void test_others() {
4646
}
4747
}
4848

49-
constexpr bool tests() {
49+
constexpr bool test() {
5050
// happy paths
5151
{
5252
test_primary_encoding_spellings();
@@ -90,8 +90,8 @@ int main(int, char**) {
9090
}
9191

9292
{
93-
tests();
94-
static_assert(tests());
93+
test();
94+
static_assert(test());
9595
}
9696

9797
return 0;

libcxx/test/std/utilities/text_encoding/text_encoding.eq/equal.id.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ constexpr void test_primary_encodings() {
2727
}
2828
}
2929

30-
constexpr bool tests() {
30+
constexpr bool test() {
3131
// 1. operator==(const text_encoding&, id) must be noexcept
3232
{
3333
std::text_encoding te = std::text_encoding();
@@ -67,8 +67,8 @@ constexpr bool tests() {
6767
}
6868

6969
int main(int, char**) {
70-
tests();
71-
static_assert(tests());
70+
test();
71+
static_assert(test());
7272

7373
return 0;
7474
}

libcxx/test/std/utilities/text_encoding/text_encoding.eq/equal.pass.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@
1919

2020
using id = std::text_encoding::id;
2121

22-
constexpr bool tests() {
22+
constexpr bool test() {
2323
// 1. operator==(const text_encoding&, const text_encoding&) must be noexcept
2424
{
25-
std::text_encoding te1 = std::text_encoding();
26-
std::text_encoding te2 = std::text_encoding();
27-
assert(te1 == te2);
28-
ASSERT_NOEXCEPT(te1 == te2);
25+
ASSERT_NOEXCEPT(std::text_encoding() == std::text_encoding());
2926
}
3027

3128
// 2. operator==(const text_encoding&, const text_encoding&) returns true if both text_encoding ids are equal
@@ -60,8 +57,8 @@ constexpr bool tests() {
6057
}
6158

6259
int main(int, char**) {
63-
tests();
64-
static_assert(tests());
60+
test();
61+
static_assert(test());
6562

6663
return 0;
6764
}

libcxx/test/std/utilities/text_encoding/text_encoding.members/text_encoding.aliases_view/begin.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <ranges>
1717
#include <text_encoding>
1818

19-
constexpr bool tests() {
19+
constexpr bool test() {
2020
// 1. begin() of an aliases_view from a single text_encoding object are the same.
2121
{
2222
std::text_encoding te = std::text_encoding(std::text_encoding::UTF8);
@@ -56,8 +56,8 @@ constexpr bool tests() {
5656
}
5757

5858
int main(int, char**) {
59-
tests();
60-
static_assert(tests());
59+
test();
60+
static_assert(test());
6161

6262
return 0;
6363
}

libcxx/test/std/utilities/text_encoding/text_encoding.members/text_encoding.aliases_view/empty.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ constexpr void test_primary_encodings() {
5454
}
5555
}
5656

57-
constexpr bool tests() {
57+
constexpr bool test() {
5858
// 1. An alias_view of a text_encoding object for "other" and "unknown" are empty
5959
{
6060
test_other_unknown();
@@ -69,8 +69,8 @@ constexpr bool tests() {
6969
}
7070

7171
int main(int, char**) {
72-
tests();
73-
static_assert(tests());
72+
test();
73+
static_assert(test());
7474

7575
return 0;
7676
}

libcxx/test/std/utilities/text_encoding/text_encoding.members/text_encoding.aliases_view/front.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
using id = std::text_encoding::id;
2121

22-
constexpr bool tests() {
22+
constexpr bool test() {
2323
// 1. An aliases_view from a single text_encoding object returns the same front()
2424
{
2525
std::text_encoding te = std::text_encoding(id::UTF8);
@@ -56,8 +56,8 @@ constexpr bool tests() {
5656
}
5757

5858
int main(int, char**) {
59-
tests();
60-
static_assert(tests());
59+
test();
60+
static_assert(test());
6161

6262
return 0;
6363
}

libcxx/test/std/utilities/text_encoding/text_encoding.members/text_encoding.aliases_view/iterator.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <text_encoding>
1919
#include <utility>
2020

21-
constexpr bool tests() {
21+
constexpr bool test() {
2222
// Test iterator operators.
2323
std::text_encoding te = std::text_encoding(std::text_encoding::ASCII); // 11 aliases
2424

@@ -96,8 +96,8 @@ constexpr bool tests() {
9696
}
9797

9898
int main(int, char**) {
99-
tests();
100-
static_assert(tests());
99+
test();
100+
static_assert(test());
101101

102102
return 0;
103103
}

0 commit comments

Comments
 (0)