mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
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:
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();
|
||||
|
||||
Reference in new issue
Block a user