Skip to content

Commit

Permalink
Issue #63: unit test: expecations -> expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Jul 6, 2024
1 parent a5c28c0 commit 28715c0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/unittest/test_lanes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ class Fixture
{
auto& cur = instructions[i];

expecations.push_back(
expectations.push_back(
NAMED_ALLOW_CALL(cur, Type()).RETURN(IInstruction::InstructionType::kOther));
expecations.push_back(NAMED_ALLOW_CALL(cur, RefersTo()).RETURN(std::nullopt));
expecations.push_back(NAMED_ALLOW_CALL(cur, ReferredBy()).RETURN(no_referers));
expecations.push_back(NAMED_ALLOW_CALL(cur, Offset()).RETURN(i));
expectations.push_back(NAMED_ALLOW_CALL(cur, RefersTo()).RETURN(std::nullopt));
expectations.push_back(NAMED_ALLOW_CALL(cur, ReferredBy()).RETURN(no_referers));
expectations.push_back(NAMED_ALLOW_CALL(cur, Offset()).RETURN(i));
}

CreateReference(0, 2);
Expand All @@ -68,12 +68,12 @@ class Fixture
const auto& from = instructions[from_index];
const auto& to = instructions[to_index];

expecations.push_back(NAMED_ALLOW_CALL(from, RefersTo())
.RETURN(IInstruction::Referer {nullptr, to_index, nullptr}));
expecations.push_back(NAMED_ALLOW_CALL(to, ReferredBy())
.RETURN(std::vector<IInstruction::Referer> {
IInstruction::Referer {nullptr, from_index, nullptr}}));
expecations.push_back(
expectations.push_back(NAMED_ALLOW_CALL(from, RefersTo())
.RETURN(IInstruction::Referer {nullptr, to_index, nullptr}));
expectations.push_back(NAMED_ALLOW_CALL(to, ReferredBy())
.RETURN(std::vector<IInstruction::Referer> {
IInstruction::Referer {nullptr, from_index, nullptr}}));
expectations.push_back(
NAMED_ALLOW_CALL(from, Type()).RETURN(IInstruction::InstructionType::kBranch));
}

Expand Down Expand Up @@ -126,7 +126,7 @@ class Fixture

private:
std::vector<IInstruction::Referer> no_referers;
std::vector<std::unique_ptr<trompeloeil::expectation>> expecations;
std::vector<std::unique_ptr<trompeloeil::expectation>> expectations;
};

} // namespace
Expand Down

0 comments on commit 28715c0

Please sign in to comment.