Skip to content

Commit

Permalink
Use unwrap instead of ? for tests to get line numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Aug 2, 2023
1 parent 33b5b20 commit e4f4b54
Show file tree
Hide file tree
Showing 62 changed files with 4,367 additions and 3,580 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Enhancements
------------

* [`once_cell`](https://crates.io/crates/once_cell) is used in `std` environments instead of the home-brew `SusLock` (which is still kept for `no-std`).
* Originally, unit tests use the `?` operator liberally to simplify the code. However, this causes the loss of proper line numbers when it fails, making it difficult to identify the exact location of the failure. This is now fixed by using `unwrap()` instead.

New features
------------
Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ How to Run
----------

```bash
cargo test
cargo test --features bin-features
```
Loading

0 comments on commit e4f4b54

Please sign in to comment.