encoding/jsonschema: fix type exclusion test
This test was added by https://cue-review.googlesource.com/c/cue/+/5648
but included a case that was later made an error in
https://cue-review.googlesource.com/c/cue/+/6302 (the self-contradictory
`allOf` case), thus meaning the rest of the test was not
actually checked.
We move that case into its own test, ensuring that the other
cases pass.
We also rename the `emptyanyof` because it is not actually
testing an empty anyOf, but rather an empty object _inside_
an anyOf.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Id01c93b9085bff7726e8042a8d039e0ee5fd7ceb
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199398
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>