From e26e23fd0e6baad6b5285ba1d990142b1f0ff1aa Mon Sep 17 00:00:00 2001 From: Daumantas Kavolis Date: Wed, 25 Oct 2023 10:24:35 +0300 Subject: [PATCH] Fix formatting --- cli/src/tests/tree_test.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cli/src/tests/tree_test.rs b/cli/src/tests/tree_test.rs index 161f65e9..f3792138 100644 --- a/cli/src/tests/tree_test.rs +++ b/cli/src/tests/tree_test.rs @@ -393,15 +393,24 @@ fn test_tree_cursor_previous_sibling() { assert!(cursor.goto_last_child()); assert_eq!(cursor.node().kind(), "line_comment"); - assert_eq!(cursor.node().utf8_text(text.as_bytes()).unwrap(), "// Another one!"); + assert_eq!( + cursor.node().utf8_text(text.as_bytes()).unwrap(), + "// Another one!" + ); assert!(cursor.goto_previous_sibling()); assert_eq!(cursor.node().kind(), "line_comment"); - assert_eq!(cursor.node().utf8_text(text.as_bytes()).unwrap(), "// This is fun!"); + assert_eq!( + cursor.node().utf8_text(text.as_bytes()).unwrap(), + "// This is fun!" + ); assert!(cursor.goto_previous_sibling()); assert_eq!(cursor.node().kind(), "line_comment"); - assert_eq!(cursor.node().utf8_text(text.as_bytes()).unwrap(), "// Hi there"); + assert_eq!( + cursor.node().utf8_text(text.as_bytes()).unwrap(), + "// Hi there" + ); assert!(!cursor.goto_previous_sibling()); }