Skip to content

Commit 833f750

Browse files
authored
Uncommented out 'delete by index' test code (#3156)
# Description of Changes Uncommented out code from test, in order to have "delete row by index" test of C# module code ran. This is the implementation of a fix for issue #2233 # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing - [X] Ran `dotnet run` and `dotnet test`, both returned no errors.
1 parent 86c6d3b commit 833f750

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/module-test-cs/Lib.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,11 @@ public static void test(ReducerContext ctx, TestAlias arg, TestB arg2, TestC arg
294294
var rowCountBeforeDelete = ctx.Db.test_a.Count;
295295
Log.Info($"Row count before delete: {rowCountBeforeDelete}");
296296

297-
uint numDeleted = 0;
297+
ulong numDeleted = 0;
298298
// Delete rows using the "foo" index (from 5 up to, but not including, 10).
299299
for (uint row = 5; row < 10; row++)
300300
{
301-
// FIXME: Apparently in Rust you can delete by index, but in C# you can't.
302-
// numDeleted += ctx.Db.test_a.foo.Delete(row);
301+
numDeleted += ctx.Db.test_a.foo.Delete(row);
303302
}
304303

305304
var rowCountAfterDelete = ctx.Db.test_a.Count;

0 commit comments

Comments
 (0)