Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion style.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Take extra care when reviewing ai-generated code for these issues:

A failure in a unit test should immediately point to the source of the issue, and the clearly display the error encountered. Moreover, it should be possible to debug a test even if the test writer is not available, for example:

- add `#[track_caller]` on test-utils which include a critical assert, so that the trace will be the callsite in the test
- use `assert_eq(result, Ok(<Value>))` over `assert!(result.is_ok())` ---
the former will display the error, and the latter will simply say `expected True, got False`.
- If you're not interested in the value, or if error type doesn't implement `PartialEq`, simply call `result.unwrap()`
Expand Down
Loading