…
# Start of toml-glib tests
ok 1 /toml-glib/parser
ok 2 /toml-glib/serialize
ERROR: Nothing at `dog`.
not ok 3 /toml-glib/deserialize
# Start of lexer tests
…
Bonus issue:
You're not using your environment variable G_TEST_SRCDIR inside your tests so the tests /toml-glib/parser/file and /toml-glib/parser/whole-spec fail with
[ERROR] Failed to open file ?test.toml?: No such file or directory
not ok 12 /toml-glib/parser/file
[ERROR] Failed to open file ?all.toml?: No such file or directory
not ok 13 /toml-glib/parser/whole-spec
Bonus issue:
With the above file issue fixed I expect all.toml to fail or throw errors because it contains invalid configurations but it doesn't.
This example is directly from the toml.io page:
But trying to access them with
doc["dog"]["tater.man"]["type"]["name"].as<string> ()
fails with:Here's a simple example for your tests which outputs the error in the log.
Bonus issue: You're not using your environment variable
G_TEST_SRCDIR
inside your tests so the tests/toml-glib/parser/file
and/toml-glib/parser/whole-spec
fail withBonus issue: With the above file issue fixed I expect
all.toml
to fail or throw errors because it contains invalid configurations but it doesn't.