Skip to content

Commit

Permalink
Add a basic test for state getField.
Browse files Browse the repository at this point in the history
  • Loading branch information
frld committed May 7, 2024
1 parent eb5fdaf commit 87ab62b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/orca-jedi/test_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ CASE("test basic state") {
SECTION("test state write") {
state.write(params);
}

SECTION("test state getField") {
atlas::Field field = state.getField(0);
std::cout << field.name() << std::endl;
EXPECT(field.name() == "sea_ice_area_fraction");
}
}

} // namespace test
Expand Down

0 comments on commit 87ab62b

Please sign in to comment.