division with zero => division by zero
This commit is contained in:
parent
d7aee72fcd
commit
263c5b9e5a
|
@ -1066,5 +1066,5 @@ void CheckOther::nullPointerError(const Token *tok)
|
||||||
|
|
||||||
void CheckOther::zerodivError(const Token *tok)
|
void CheckOther::zerodivError(const Token *tok)
|
||||||
{
|
{
|
||||||
reportError(tok, "error", "zerodiv", "Division with zero");
|
reportError(tok, "error", "zerodiv", "Division by zero");
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ private:
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
|
|
||||||
ASSERT_EQUALS(std::string("[test.cpp:5]: (error) Division with zero\n"), errout.str());
|
ASSERT_EQUALS(std::string("[test.cpp:5]: (error) Division by zero\n"), errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void zeroDiv2()
|
void zeroDiv2()
|
||||||
|
|
Loading…
Reference in New Issue