From 90af72dee14dee55fe2256b94a720043dddad687 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 7 Jul 2021 12:09:53 -0700 Subject: [PATCH] /go/libraries/doltcore/env/actions/infer_schema_test.go: add test showing how we handle leading zero floats currently --- go/libraries/doltcore/env/actions/infer_schema_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/libraries/doltcore/env/actions/infer_schema_test.go b/go/libraries/doltcore/env/actions/infer_schema_test.go index 4a7196a817..26031dfd56 100644 --- a/go/libraries/doltcore/env/actions/infer_schema_test.go +++ b/go/libraries/doltcore/env/actions/infer_schema_test.go @@ -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},