pkg/net: add regression tests for IP validators with unexpected types
Add test cases for net.IPCIDR, net.IP, net.IPv4, and net.IPv6
with integer values. This shows the existing behavior where
net.IPCIDR incorrectly succeeds on non-string types like integers.
The other validators (IP, IPv4, IPv6) happen to return false for
unexpected types, which works but gives less informative errors.
Also drop the out/net golden section and the diff between the old
and new evaluators, as the difference no longer matters.
For #3979.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I9a73d8dce473487aa4e7896e4986e099cfb90ca3
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1233775
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>