Skip to content

Commit

Permalink
Remove extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Nov 13, 2024
1 parent 8ae14b2 commit 3902db8
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions DuckDB.NET.Test/TableFunctionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@ namespace DuckDB.NET.Test;
[Experimental("DuckDBNET001")]
public class TableFunctionTests(DuckDBDatabaseFixture db) : DuckDBTestBase(db)
{
[Fact]
public void RegisterTableFunctionWithOneParameter()
{
Connection.RegisterTableFunction<int>("demo", async (parameters) =>
{
var value = parameters[0].GetValue<int>();

return new TableFunction(new List<ColumnInfo>()
{
new ColumnInfo("foo", typeof(int)),
}, Enumerable.Range(0, value));
}, (item, writers, rowIndex) =>
{
writers[0].WriteValue((int)item, rowIndex);
});

var data = Connection.Query<int>("SELECT * FROM demo(30);");
data.Should().BeEquivalentTo(Enumerable.Range(0, 30));
}

[Fact]
public void RegisterTableFunctionWithTwoParameters()
{
Expand Down

0 comments on commit 3902db8

Please sign in to comment.