  REQUIRE(constant->eval() == 123);
}

TEST_CASE("test_constant_decimal", "[ConstantReactor]") {
  auto constant = make_constant_reactor(3.14);
  REQUIRE(constant->commit(100) == BaseReactor::Update::COMPLETE_EVAL);
  REQUIRE(constant->eval() == 3.14);
}

TEST_CASE("test_constant_string", "[ConstantReactor]") {
  auto constant = make_constant_reactor("hello world"s);
  REQUIRE(constant->commit(123) == BaseReactor::Update::COMPLETE_EVAL);
  REQUIRE(constant->eval() == "hello world"s);
}
