Skip to content

Commit abf9144

Browse files
[libcxx][test] Fix typos (llvm#155217)
I noticed a typo in the directory name `refwrap.comparissons`, then did a quick pass to fix typos elsewhere in the tests. All fixes were manual (some carefully search-and-replaced); I used [cspell](https://www.npmjs.com/package/cspell) to find them.
1 parent 23c7ad9 commit abf9144

File tree

48 files changed

+93
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+93
-93
lines changed

libcxx/test/std/algorithms/algorithms.results/out_value_result.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ constexpr bool test() {
123123
static_assert(std::is_same_v<double, decltype(res.value)>);
124124
}
125125
{
126-
// Check aggregate initiazliation
126+
// Check aggregate initialization
127127
out_value_result<int, int> res = {1, 2};
128128
assert(res.out == 1);
129129
assert(res.value == 2);

libcxx/test/std/atomics/types.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct test_atomic<T, /*Integral=*/true, false, false> {
6868
};
6969

7070
template <class T>
71-
struct test_atomic<T, false, /*Foating=*/true, false> {
71+
struct test_atomic<T, false, /*Floating=*/true, false> {
7272
test_atomic() {
7373
using A = std::atomic<T>;
7474
A a;

libcxx/test/std/containers/associative/map/map.cons/copy_assign.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ template <class Alloc, class AllocatorInvariant = NoOp>
7070
void test_alloc(const Alloc& lhs_alloc = Alloc(),
7171
const Alloc& rhs_alloc = Alloc(),
7272
AllocatorInvariant check_alloc_invariant = NoOp()) {
73-
{ // Test empty/non-empy map combinations
73+
{ // Test empty/non-empty map combinations
7474
{ // assign from a non-empty container into an empty one
7575
using V = std::pair<const int, int>;
7676
using Map = std::map<int, int, std::less<int>, Alloc>;
@@ -225,7 +225,7 @@ void test_alloc(const Alloc& lhs_alloc = Alloc(),
225225
}
226226
check_alloc_invariant();
227227
}
228-
{ // Make a somewhat larget set to exercise the algorithm a bit
228+
{ // Make a somewhat larger set to exercise the algorithm a bit
229229
using V = std::pair<const int, int>;
230230
using Map = std::map<int, int, std::less<int>, Alloc>;
231231

libcxx/test/std/containers/associative/multimap/multimap.cons/copy_assign.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ template <class Alloc, class AllocatorInvariant = NoOp>
6868
void test_alloc(const Alloc& lhs_alloc = Alloc(),
6969
const Alloc& rhs_alloc = Alloc(),
7070
AllocatorInvariant check_alloc_invariant = NoOp()) {
71-
{ // Test empty/non-empy multimap combinations
71+
{ // Test empty/non-empty multimap combinations
7272
{ // assign from a non-empty container into an empty one
7373
using V = std::pair<const int, int>;
7474
using Map = std::multimap<int, int, std::less<int>, Alloc>;
@@ -223,7 +223,7 @@ void test_alloc(const Alloc& lhs_alloc = Alloc(),
223223
}
224224
check_alloc_invariant();
225225
}
226-
{ // Make a somewhat larget set to exercise the algorithm a bit
226+
{ // Make a somewhat larger set to exercise the algorithm a bit
227227
using V = std::pair<const int, int>;
228228
using Map = std::multimap<int, int, std::less<int>, Alloc>;
229229

libcxx/test/std/containers/associative/multiset/multiset.cons/copy_assign.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ template <class Alloc, class AllocatorInvariant = NoOp>
6868
void test_alloc(const Alloc& lhs_alloc = Alloc(),
6969
const Alloc& rhs_alloc = Alloc(),
7070
AllocatorInvariant check_alloc_invariant = NoOp()) {
71-
{ // Test empty/non-empy multiset combinations
71+
{ // Test empty/non-empty multiset combinations
7272
{ // assign from a non-empty container into an empty one
7373
using Set = std::multiset<int, std::less<int>, Alloc>;
7474

@@ -216,7 +216,7 @@ void test_alloc(const Alloc& lhs_alloc = Alloc(),
216216
assert(std::next(orig.begin(), 3) == orig.end());
217217
}
218218
check_alloc_invariant();
219-
{ // Make a somewhat larget multiset to exercise the algorithm a bit
219+
{ // Make a somewhat larger multiset to exercise the algorithm a bit
220220
using Set = std::multiset<int, std::less<int>, Alloc>;
221221

222222
Set orig(rhs_alloc);

libcxx/test/std/containers/associative/set/set.cons/copy_assign.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ template <class Alloc, class AllocatorInvariant = NoOp>
7070
void test_alloc(const Alloc& lhs_alloc = Alloc(),
7171
const Alloc& rhs_alloc = Alloc(),
7272
AllocatorInvariant check_alloc_invariant = NoOp()) {
73-
{ // Test empty/non-empy set combinations
73+
{ // Test empty/non-empty set combinations
7474
{ // assign from a non-empty container into an empty one
7575
using Set = std::set<int, std::less<int>, Alloc>;
7676

@@ -218,7 +218,7 @@ void test_alloc(const Alloc& lhs_alloc = Alloc(),
218218
assert(std::next(orig.begin(), 3) == orig.end());
219219
}
220220
check_alloc_invariant();
221-
{ // Make a somewhat larget set to exercise the algorithm a bit
221+
{ // Make a somewhat larger set to exercise the algorithm a bit
222222
using Set = std::set<int, std::less<int>, Alloc>;
223223

224224
Set orig(rhs_alloc);

libcxx/test/std/containers/sequences/array/array.cons/initialization.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct NoDefault {
2020
struct test_initialization {
2121
template <typename T>
2222
TEST_CONSTEXPR_CXX14 void operator()() const {
23-
// Check default initalization
23+
// Check default initialization
2424
{
2525
std::array<T, 0> a0;
2626
(void)a0;

libcxx/test/std/containers/sequences/vector/vector.capacity/max_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ TEST_CONSTEXPR_CXX20 bool tests() {
6666

6767
#if TEST_STD_VER >= 11
6868

69-
// Test with various allocators and diffrent size_type
69+
// Test with various allocators and different size_type
7070
{
7171
test(std::vector<int>());
7272
test(std::vector<short, std::allocator<short> >());

libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit_exceptions.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void test_allocation_exception_for_strong_guarantee(std::vector<T, Alloc>& v, co
3939
} catch (...) {
4040
}
4141

42-
// As shrink_to_fit may swallow any exceptions, we place the checks outisde the catch block.
42+
// As shrink_to_fit may swallow any exceptions, we place the checks outside the catch block.
4343
assert(v.data() == old_data);
4444
assert(v.size() == old_size);
4545
assert(v.capacity() == old_cap);

libcxx/test/std/containers/views/mdspan/aligned_accessor/access.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "test_macros.h"
2424

2525
// We are not using MinimalElementType.h because MinimalElementType is not
26-
// default consructible and uninitialized storage does not work in constexpr.
26+
// default constructible and uninitialized storage does not work in constexpr.
2727

2828
// Same as MinimalElementType but with a defaulted default constructor
2929
struct MyMinimalElementType {

0 commit comments

Comments
 (0)