Skip to content

Commit

Permalink
Add value with negative exponent to test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Sep 18, 2024
1 parent ee77676 commit 836cc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snowflake.Data.Tests/IntegrationTests/StructuredArraysIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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);
}
}
}
Expand Down

0 comments on commit 836cc7a

Please sign in to comment.