encoding/jsonschema: support instance tests
Currently the encoding/jsonschema tests assert the CUE output, but
doesn't give full assurance that the generated CUE does actually behave
as expected.
This CL adds that capability, and adds a few such tests just to prove
the concept. Future CLs will add many more.
Also add some docs about the test file conventions for future reference.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I2fd8babf470dcf6162d9f82b5e0ebacf57f77c60
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199743
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
authored by