#include <catch.hpp>
#include "../wold.hpp"

namespace wold {

  TEST_CASE("foo", "[]") {
    REQUIRE(foo() == 42);
  }

} // namespace wold

#include <catch.hpp>
#include "../wold.hpp"

#include <boost/spirit/home/x3.hpp>
#include <iostream>

namespace wold {

  TEST_CASE("foo", "[]") {
    REQUIRE(foo() == 42);
  }

  TEST_CASE("parsing", "[]") {
    using boost::spirit::x3::double_;
    using boost::spirit::x3::ascii::space;

    auto text = std::string("  val 12.3 ");
    double result;
    auto success = boost::spirit::x3::phrase_parse(
        text.begin(), text.end(),
        "val" >> double_,
        space,
        result);

    REQUIRE(success);
    std::cout << result << "\n";
  }

} // namespace wold

Add basic x3 parsing demo test
Add basic x3 parsing demo test
