guile-toml/test/README.org

1.0 KiB

guile-toml tests

toml-test suite

To run the toml-test suite, install toml-test by following the instructions here. Running the tests also depends on guile-json, so make sure to have it installed.

To test the decoder, run:

$ toml-test ./test-decoder.scm

To test the encoder, run:

$ toml-test -encoder ./test-encoder.scm

tests for Guile's datatypes

The toml-test suite tests TOML's structure extensively, but since it relies on JSON and a different encoding of values, we still need to test whether Guile's datatypes are decoded and encoded correctly.

To run the tests for the decoder:

$ guile test-datatypes.scm

The files decoder.scm and encoder.scm serve as manual testing utilities:

  • decoder.scm takes TOML input from STDIN and outputs pretty-printed SCM to STDOUT.
  • encoder.scm takes JSON input from STDIN and outputs TOML to STDOUT.