ratatui/examples/demo2
EdJoPaTo 2cfe82a47e
refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007)
- Simplify `assert_buffer_eq!` logic.
- Deprecate `assert_buffer_eq!`.
- Introduce `TestBackend::assert_buffer_lines`.

Also simplify many tests involving buffer comparisons.

For the deprecation, just use `assert_eq` instead of `assert_buffer_eq`:

```diff
-assert_buffer_eq!(actual, expected);
+assert_eq!(actual, expected);
```

---

I noticed `assert_buffer_eq!` creating no test coverage reports and
looked into this macro. First I simplified it. Then I noticed a bunch of
`assert_eq!(buffer, …)` and other indirect usages of this macro (like
`TestBackend::assert_buffer`).

The good thing here is that it's mainly used in tests so not many
changes to the library code.
2024-05-13 18:13:46 -07:00
..
tabs perf(block): use Block::bordered (#1041) 2024-05-02 03:09:48 -07:00
app.rs refactor(example): remove pointless new method (#1038) 2024-04-16 21:02:39 +03:00
big_text.rs refactor(buffer): deprecate assert_buffer_eq! in favor of assert_eq! (#1007) 2024-05-13 18:13:46 -07:00
colors.rs refactor(non-src): apply pedantic lints (#976) 2024-03-02 01:06:53 -08:00
destroy.rs refactor(non-src): apply pedantic lints (#976) 2024-03-02 01:06:53 -08:00
errors.rs refactor(non-src): apply pedantic lints (#976) 2024-03-02 01:06:53 -08:00
main.rs refactor(example): remove pointless new method (#1038) 2024-04-16 21:02:39 +03:00
tabs.rs feat(examples): add demo2 example (#500) 2023-09-21 01:47:23 -07:00
term.rs docs(examples): refactor demo2 (#836) 2024-01-24 11:44:16 -08:00
theme.rs feat(demo2): add destroy mode to celebrate commit 1000! (#809) 2024-01-13 15:13:50 -08:00