mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
assertions: use assert_eq! where possible
Using `assert_eq!` instead of `assert!` has the advantage that when the assertion fails, the debug representation of both sides will be shown, which can provide more information about the failure than only seeing that the assertion failed. Part of #12336
This commit is contained in:
committed by
Johannes Altmanninger
parent
939fa25a5b
commit
8718d62b11
@@ -84,7 +84,7 @@ macro_rules! sprintf {
|
||||
///
|
||||
/// let result = printf_c_locale(&mut output, fmt, &mut args);
|
||||
///
|
||||
/// assert!(result == Ok(10));
|
||||
/// assert_eq!(result, Ok(10));
|
||||
/// assert_eq!(output, "1.2346e+05");
|
||||
/// ```
|
||||
pub fn printf_c_locale(
|
||||
|
||||
Reference in New Issue
Block a user