Skip to content

Commit 09fd4d2

Browse files
senamakelmedullabot
andcommitted
fix(test): use assert_ne macro for clarity
Replaced a manual inequality assertion with the dedicated `assert_ne!` macro in a regression test. This makes the test's intent clearer and follows standard Rust testing conventions. Auto-committed-on: dragonfly Co-authored-by: Medulla <medulla@tinyhumans.ai>
1 parent a2a2c29 commit 09fd4d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crates/tinytools-agent/src/parse/test/regressions.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ fn markdown_fence_with_a_json_body_parses() {
127127
let (text, calls) = parse(input);
128128
assert_eq!(calls.len(), 1);
129129
assert_eq!(calls[0].name, "ping");
130-
assert!(calls[0].source != CallSource::Native);
130+
assert_ne!(calls[0].source, CallSource::Native);
131131
assert!(text.contains("preamble") && text.contains("postamble"));
132132
}

0 commit comments

Comments
 (0)