From 836cc7aab587661874c5c165cee74147bb55a23a Mon Sep 17 00:00:00 2001 From: Louie Farol Date: Wed, 18 Sep 2024 16:14:15 -0700 Subject: [PATCH] Add value with negative exponent to test --- Snowflake.Data.Tests/IntegrationTests/StructuredArraysIT.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/StructuredArraysIT.cs b/Snowflake.Data.Tests/IntegrationTests/StructuredArraysIT.cs index 835a9be35..39ef058b8 100644 --- a/Snowflake.Data.Tests/IntegrationTests/StructuredArraysIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/StructuredArraysIT.cs @@ -253,7 +253,7 @@ public void TestSelectArrayOfDoublesWithExponentNotation() using (var command = connection.CreateCommand()) { EnableStructuredTypes(connection); - var arrayOfDoubles = $"ARRAY_CONSTRUCT(1.0e100)::ARRAY(DOUBLE)"; + var arrayOfDoubles = "ARRAY_CONSTRUCT(1.0e100, 1.0e-100)::ARRAY(DOUBLE)"; command.CommandText = $"SELECT {arrayOfDoubles}"; var reader = (SnowflakeDbDataReader) command.ExecuteReader(); Assert.IsTrue(reader.Read()); @@ -263,7 +263,7 @@ public void TestSelectArrayOfDoublesWithExponentNotation() // assert Assert.AreEqual(1, array.Length); - CollectionAssert.AreEqual(new[] { 1.0e100d }, array); + CollectionAssert.AreEqual(new[] { 1.0e100d, 1.0e-100d }, array); } } }