Skip to content

Commit

Permalink
Remove unit-test until we have a way to run them
Browse files Browse the repository at this point in the history
  • Loading branch information
tsg committed Feb 15, 2024
1 parent c7c386d commit b9a9883
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/char_count_zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,3 @@ fn char_count_zig(input_text: []const u8, target_char: []const u8) !u32 {
}
return count;
}

// TODO:
// how can we compile these into the lib and run them from within postgres?
test "char_count_zig happy path" {
const input_text = "Hello World";
const target_char = "l";
const expected_count: u32 = 3;
const actual_count = try char_count_zig(input_text, target_char);
try std.testing.expectEqual(expected_count, actual_count);
}

0 comments on commit b9a9883

Please sign in to comment.