pkg/net: add regression tests for net.FQDN with invalid domain names
These tests demonstrate that net.FQDN incorrectly accepts strings
containing spaces, due to an upstream bug with idna.StrictDomainName.
For #2431.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I86b27e2a9c144a33608863b3c764b14b99507369
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1235281
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>