Skip to content

Commit

Permalink
Improve coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Aug 16, 2023
1 parent 563bc08 commit 378d039
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/llvm_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,19 @@ TEST_CASE("copy semantics")

taylor_add_jet<double>(s, "jet", {x * y, y * x}, 1, 1, true, false);

// On-the-fly testing for string repr.
std::ostringstream oss;
oss << s;
const auto orig_repr = oss.str();

s.compile();

oss.str("");
oss << s;
const auto compiled_repr = oss.str();

REQUIRE(orig_repr != compiled_repr);

const auto orig_ir = s.get_ir();
const auto orig_bc = s.get_bc();

Expand Down

0 comments on commit 378d039

Please sign in to comment.