diff --git a/tests/Pgvector.CSharp.Tests/NpgsqlTests.cs b/tests/Pgvector.CSharp.Tests/NpgsqlTests.cs index 69bc6af..dfbb9f7 100644 --- a/tests/Pgvector.CSharp.Tests/NpgsqlTests.cs +++ b/tests/Pgvector.CSharp.Tests/NpgsqlTests.cs @@ -69,6 +69,20 @@ public async Task Main() await cmd.ExecuteNonQueryAsync(); } + await using (var writer = conn.BeginBinaryImport("COPY items (embedding) FROM STDIN WITH (FORMAT BINARY)")) + { + writer.StartRow(); + writer.Write(new Vector(new float[] { 1, 1, 1 })); + + writer.StartRow(); + writer.Write(new Vector(new float[] { 2, 2, 2 })); + + writer.StartRow(); + writer.Write(new Vector(new float[] { 1, 1, 2 })); + + writer.Complete(); + } + await using (var cmd = new NpgsqlCommand("SELECT $1", conn)) { var embedding = new Vector(new float[16000]);