Skip to content

Commit

Permalink
Clang Formatting and Graphs for New Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kharold23 committed Oct 30, 2024
1 parent 9bd73b3 commit 9cee0b6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 31 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/test_macos.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/model/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

template <typename block_type>
BlockFactoryFunc block_factory() {
return [](int count, Model *model) -> std::shared_ptr<Block>{
return [](int count, Model *model) -> std::shared_ptr<Block> {
return std::make_shared<block_type>(count, model);
};
}
Expand Down
6 changes: 4 additions & 2 deletions src/model/Parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ void Parameter::update(const std::string update_string) {
symbol_table.clear();

if (!symbol_table.create_variable("t")) {
throw std::runtime_error("Error failed to create time_value in symbol_table.");
throw std::runtime_error(
"Error failed to create time_value in symbol_table.");
return;
}

Expand Down Expand Up @@ -110,7 +111,8 @@ void Parameter::update(const std::string update_string) {
exprtk::parser_error::to_str(error.mode).c_str(),
error.diagnostic.c_str(), expression_string.c_str());
}
throw std::runtime_error("Error when compiling the function provided in 'fn'.");
throw std::runtime_error(
"Error when compiling the function provided in 'fn'.");
return;
}
}
Expand Down
7 changes: 7 additions & 0 deletions tests/cases/dirgraph-results/timeDep_Flow_directed_graph.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
strict digraph {
BC0_inlet;
V0;
BC0_outlet;
BC0_inlet -> V0;
V0 -> BC0_outlet;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
strict digraph {
BC0_inlet;
V0;
BC0_outlet;
BC0_inlet -> V0;
V0 -> BC0_outlet;
}

0 comments on commit 9cee0b6

Please sign in to comment.