Skip to content

Commit

Permalink
#2134: tests: eliminate typos
Browse files Browse the repository at this point in the history
  • Loading branch information
amdarr authored and nlslatt committed May 9, 2023
1 parent c7d0101 commit f1b9a4e
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions sketches/sketch_j1d.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

// sketched out example interface to VirutalContextCollection, just for
// sketched out example interface to VirtualContextCollection, just for
// pedagogical purposes
template <typename Idx>
struct VirutalContextCollection {
struct VirtualContextCollection {
Idx index();
Idx min_index();
Idx max_index();
Expand Down Expand Up @@ -32,7 +32,7 @@ struct FinishedMsg : vt::Message {
};

// the virtual context for a Jacobi1D block
struct Jacobi1D : VirutalContextCollection<Index1D<int>> {
struct Jacobi1D : VirtualContextCollection<Index1D<int>> {
double* v1 = nullptr, *v2 = nullptr;
double lb = 0.0, rb = 0.0;
int size = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/perf/common/test_harness.cc
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ void PerfTestHarness::SpinScheduler() {
}

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

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/active/test_pending_send.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ TEST_F(TestPendingSend, test_pending_send_hold) {
theTerm()->finishedEpoch(ep);

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

Expand Down Expand Up @@ -143,7 +143,7 @@ TEST_F(TestPendingSend, test_pending_broadcast_hold) {
theTerm()->finishedEpoch(ep);

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

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/collection/test_collection_construct_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct ConstructHandlers {
static void handler(CollectionT* col, MessageT* msg) {
// fmt::print(
// "{}: constructed TestCol: idx.x()={}\n",
// theContext()->getNode(), col->getInex().x(), print_ptr(col)
// theContext()->getNode(), col->getIndex().x(), print_ptr(col)
// );
}
};
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/collection/test_collection_group.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ struct TestCollection : Collection<TestCollection, Index1D> {
);

// Even if msg was sent locally, it is still serialized,
// and the handler gots a fresh copy of it.
// and the handler gets a fresh copy of it.
if (from_node == to_node) {
EXPECT_TRUE(was_serialized);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ TEST_F(TestModelWeightedCommunicationVolume, test_model) {
}
}

}}}}} // end namespace vt::tests::unit::veighted::volume
}}}}} // end namespace vt::tests::unit::weighted::volume
8 changes: 4 additions & 4 deletions tests/unit/collection/test_reduce_collection_race.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ using TestReduceCollectionRace = TestParallelHarnessParam<int>;
struct MyCol : vt::Collection<MyCol, vt::Index1D> {};
using ReduceMsg = vt::collective::ReduceTMsg<int>;

static int multipler = 0;
static int multiplier = 0;

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

multipler = GetParam();
auto const range = Index1D(multipler * num_nodes);
multiplier = GetParam();
auto const range = Index1D(multiplier * num_nodes);
auto proxy = theCollection()->constructCollective<MyCol>(
range, "test_reduce_race_1"
);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/objgroup/test_objgroup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ struct MyTestObj {
);

// Even if msg was sent locally, it is still serialized,
// and the handler gots a fresh copy of it.
// and the handler gets a fresh copy of it.
if (from_node == to_node) {
EXPECT_TRUE(was_serialized);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/termination/test_term_cleanup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct TestTermCleanup : TestParallelHarness {
using TestMsgType = TestStaticBytesNormalMsg<64>;

static void handler(TestMsgType* msg) {
//fmt::print("recieve msg\n");
//fmt::print("receive msg\n");
}
};

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/timetrigger/test_time_trigger.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TEST_F(TestTimeTrigger, test_time_trigger_manager_trigger_ready) {
trigger_manager->triggerReady(current_time + trigger_period_s + 0.01);
EXPECT_EQ(triggered, 2);

// test unregisteration of triggers
// test unregistration of triggers
auto prev_triggered = triggered;
trigger_manager->removeTrigger(id);
trigger_manager->triggerReady(current_time + trigger_period_s + 0.01);
Expand Down

0 comments on commit f1b9a4e

Please sign in to comment.