Skip to content

Commit f1b9a4e

Browse files
amdarrnlslatt
authored andcommitted
#2134: tests: eliminate typos
1 parent c7d0101 commit f1b9a4e

10 files changed

+16
-16
lines changed

sketches/sketch_j1d.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
// sketched out example interface to VirutalContextCollection, just for
2+
// sketched out example interface to VirtualContextCollection, just for
33
// pedagogical purposes
44
template <typename Idx>
5-
struct VirutalContextCollection {
5+
struct VirtualContextCollection {
66
Idx index();
77
Idx min_index();
88
Idx max_index();
@@ -32,7 +32,7 @@ struct FinishedMsg : vt::Message {
3232
};
3333

3434
// the virtual context for a Jacobi1D block
35-
struct Jacobi1D : VirutalContextCollection<Index1D<int>> {
35+
struct Jacobi1D : VirtualContextCollection<Index1D<int>> {
3636
double* v1 = nullptr, *v2 = nullptr;
3737
double lb = 0.0, rb = 0.0;
3838
int size = 0;

tests/perf/common/test_harness.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void PerfTestHarness::SpinScheduler() {
441441
}
442442

443443
void PerfTestHarness::GetMemoryUsage() {
444-
// Memory footpring from PerfTestHarness' internal data structs are included
444+
// Memory footprint from PerfTestHarness' internal data structs are included
445445
memory_use_[current_run_].push_back(mem_tracker_.getUsage());
446446
}
447447

tests/unit/active/test_pending_send.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ TEST_F(TestPendingSend, test_pending_send_hold) {
103103
theTerm()->finishedEpoch(ep);
104104

105105
// It should not break out of this loop because of
106-
// !theTerm()->isEpochTermianted(ep), thus `k` is used to
106+
// !theTerm()->isEpochTerminated(ep), thus `k` is used to
107107
// break out
108108
int k = 0;
109109

@@ -143,7 +143,7 @@ TEST_F(TestPendingSend, test_pending_broadcast_hold) {
143143
theTerm()->finishedEpoch(ep);
144144

145145
// It should not break out of this loop because of
146-
// !theTerm()->isEpochTermianted(ep), thus `k` is used to
146+
// !theTerm()->isEpochTerminated(ep), thus `k` is used to
147147
// break out
148148
int k = 0;
149149

tests/unit/collection/test_collection_construct_common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct ConstructHandlers {
7474
static void handler(CollectionT* col, MessageT* msg) {
7575
// fmt::print(
7676
// "{}: constructed TestCol: idx.x()={}\n",
77-
// theContext()->getNode(), col->getInex().x(), print_ptr(col)
77+
// theContext()->getNode(), col->getIndex().x(), print_ptr(col)
7878
// );
7979
}
8080
};

tests/unit/collection/test_collection_group.extended.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct TestCollection : Collection<TestCollection, Index1D> {
246246
);
247247

248248
// Even if msg was sent locally, it is still serialized,
249-
// and the handler gots a fresh copy of it.
249+
// and the handler gets a fresh copy of it.
250250
if (from_node == to_node) {
251251
EXPECT_TRUE(was_serialized);
252252
}

tests/unit/collection/test_model_weighted_communication_volume.nompi.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,4 @@ TEST_F(TestModelWeightedCommunicationVolume, test_model) {
179179
}
180180
}
181181

182-
}}}}} // end namespace vt::tests::unit::veighted::volume
182+
}}}}} // end namespace vt::tests::unit::weighted::volume

tests/unit/collection/test_reduce_collection_race.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ using TestReduceCollectionRace = TestParallelHarnessParam<int>;
5151
struct MyCol : vt::Collection<MyCol, vt::Index1D> {};
5252
using ReduceMsg = vt::collective::ReduceTMsg<int>;
5353

54-
static int multipler = 0;
54+
static int multiplier = 0;
5555

5656
struct ReduceFunctor {
5757
void operator()(ReduceMsg* msg) {
5858
auto const num_nodes = theContext()->getNumNodes();
59-
auto const num_elems = num_nodes * multipler;
59+
auto const num_elems = num_nodes * multiplier;
6060
fmt::print("reduce finished: val={}, num_elems={}\n", msg->getVal(), num_elems);
6161
EXPECT_EQ(msg->getVal(), (num_elems * (num_elems-1))/2);
6262
}
@@ -72,8 +72,8 @@ static void handler(MyCol* col) {
7272
TEST_P(TestReduceCollectionRace, test_reduce_race_1) {
7373
auto const num_nodes = theContext()->getNumNodes();
7474

75-
multipler = GetParam();
76-
auto const range = Index1D(multipler * num_nodes);
75+
multiplier = GetParam();
76+
auto const range = Index1D(multiplier * num_nodes);
7777
auto proxy = theCollection()->constructCollective<MyCol>(
7878
range, "test_reduce_race_1"
7979
);

tests/unit/objgroup/test_objgroup.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ struct MyTestObj {
377377
);
378378

379379
// Even if msg was sent locally, it is still serialized,
380-
// and the handler gots a fresh copy of it.
380+
// and the handler gets a fresh copy of it.
381381
if (from_node == to_node) {
382382
EXPECT_TRUE(was_serialized);
383383
}

tests/unit/termination/test_term_cleanup.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct TestTermCleanup : TestParallelHarness {
5858
using TestMsgType = TestStaticBytesNormalMsg<64>;
5959

6060
static void handler(TestMsgType* msg) {
61-
//fmt::print("recieve msg\n");
61+
//fmt::print("receive msg\n");
6262
}
6363
};
6464

tests/unit/timetrigger/test_time_trigger.extended.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ TEST_F(TestTimeTrigger, test_time_trigger_manager_trigger_ready) {
130130
trigger_manager->triggerReady(current_time + trigger_period_s + 0.01);
131131
EXPECT_EQ(triggered, 2);
132132

133-
// test unregisteration of triggers
133+
// test unregistration of triggers
134134
auto prev_triggered = triggered;
135135
trigger_manager->removeTrigger(id);
136136
trigger_manager->triggerReady(current_time + trigger_period_s + 0.01);

0 commit comments

Comments
 (0)