diff --git a/test/DataTestBase.cs b/test/DataTestBase.cs index b14683c..4eeb836 100644 --- a/test/DataTestBase.cs +++ b/test/DataTestBase.cs @@ -55,11 +55,11 @@ public async Task Query_with_basic_metadata_filter() var ordered = result.OrderBy(x => x.Id).ToList(); Assert.Equal("metadata-vector-1", ordered[0].Id); - Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values); + Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values!.Value); Assert.Equal("metadata-vector-2", ordered[1].Id); - Assert.Equal(new[] { 0f, 1, 1, 2, 3, 5, 8, 13 }, ordered[1].Values); + Assert.Equal(new[] { 0f, 1, 1, 2, 3, 5, 8, 13 }, ordered[1].Values!.Value); Assert.Equal("metadata-vector-3", ordered[2].Id); - Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[2].Values); + Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[2].Values!.Value); } [PineconeFact] @@ -74,7 +74,7 @@ public async Task Query_include_metadata_in_result() Assert.Single(result); Assert.Equal("metadata-vector-2", result[0].Id); - Assert.Equal(new[] { 0f, 1, 1, 2, 3, 5, 8, 13 }, result[0].Values); + Assert.Equal(new[] { 0f, 1, 1, 2, 3, 5, 8, 13 }, result[0].Values!.Value); var metadata = result[0].Metadata; Assert.NotNull(metadata); @@ -101,9 +101,9 @@ public async Task Query_with_metadata_filter_composite() var ordered = result.OrderBy(x => x.Id).ToList(); Assert.Equal("metadata-vector-1", ordered[0].Id); - Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values); + Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values!.Value); Assert.Equal("metadata-vector-3", ordered[1].Id); - Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[1].Values); + Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[1].Values!.Value); } [PineconeFact] @@ -120,9 +120,9 @@ public async Task Query_with_metadata_list_contains() var ordered = result.OrderBy(x => x.Id).ToList(); Assert.Equal("metadata-vector-1", ordered[0].Id); - Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values); + Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values!.Value); Assert.Equal("metadata-vector-3", ordered[1].Id); - Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[1].Values); + Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[1].Values!.Value); } [PineconeFact] @@ -150,9 +150,9 @@ public async Task Query_with_metadata_complex() var ordered = result.OrderBy(x => x.Id).ToList(); Assert.Equal("metadata-vector-1", ordered[0].Id); - Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values); + Assert.Equal(new[] { 2f, 3, 5, 7, 11, 13, 17, 19 }, ordered[0].Values!.Value); Assert.Equal("metadata-vector-3", ordered[1].Id); - Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[1].Values); + Assert.Equal(new[] { 2f, 1, 3, 4, 7, 11, 18, 29 }, ordered[1].Values!.Value); } [PineconeFact]