native_breathing_stays_hookable reads breathing.rs with LF line endings

The same Windows checkout problem as the loot test: the breathing hook test
(new on main) looks for "\n}\n" in breathing.rs, which a core.autocrlf
checkout has in CRLF. It normalises the line endings first too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
breachatoandClaude Opus 5.5 committed 2026-11-01 21:25:33 +01:00
1 parent a8ac6c8323
commit 7630a2abc3
1 file changed
+1 -1
@@ -5799,7 +5799,7 @@ mod tests {
#[test]
fn native_breathing_stays_hookable() {
let source = include_str!("../breathing.rs");
let source = include_str!("../breathing.rs").replace("\r\n", "\n");
let hook = source.find("pub fn native_living_breathe(").unwrap();
// From its doc comment's first line, so an attribute above it counts.
let start = source[..hook].find("/// An entity's breathing").unwrap();