Skip to content

Commit

Permalink
Avoid name collision is_valid_construct. (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc authored Sep 30, 2024
1 parent 744392c commit 870c24c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/units/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using Catch::Matchers::ContainsSubstring;
// able to define complex units based on base units
nmodl::parser::UnitDriver driver; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)

namespace {
bool is_valid_construct(const std::string& construct) {
return driver.parse_string(construct);
}
Expand All @@ -40,6 +41,7 @@ std::string parse_string(const std::string& unit_definition) {
correctness_driver.table->print_base_units(ss);
return ss.str();
}
} // namespace

SCENARIO("Unit parser accepting valid units definition", "[unit][parser]") {
GIVEN("A base unit") {
Expand Down

0 comments on commit 870c24c

Please sign in to comment.