/go/libraries/doltcore/env/actions/infer_schema_test.go: add test showing how we handle leading zero floats currently

This commit is contained in:
Dustin Brown
2021-07-07 12:09:53 -07:00
parent 6d64c37891
commit 90af72dee1

View File

@@ -80,6 +80,7 @@ func TestLeastPermissiveNumericType(t *testing.T) {
{"zero float with floatThreshold of 0.1", "0.0", 0.1, typeinfo.Int32Type},
{"negative float", "-1.3451234", 0.0, typeinfo.Float32Type},
{"double decimal point", "0.00.0", 0.0, typeinfo.UnknownType},
{"leading zero floats", "05.78", 0.0, typeinfo.Float32Type},
{"zero float with high precision", "0.0000", 0.0, typeinfo.Float32Type},
{"all zeroes", "0000", 0.0, typeinfo.StringDefaultType},
{"leading zeroes", "01", 0.0, typeinfo.StringDefaultType},