zig
zig copied to clipboard
Behavior tests should avoid `expectEqual` and friends
See discussion on #24360; these functions depend too much on the standard library.
Would adding a select few simplified (no printing etc) versions of these functions to test/behavior.zig be a satisfactory solution to the more complicated tests?
For example, we could add simpleExpectEqualStrings() to test/behavior.zig to replace instances of std.testing.expectEqualStrings in test/behavior/**
Alternative would be to carefully refactor the remaining 300-ish instances of more complicated tests some other way.