From fc0ea89fe4665ae9c6265c7ba6c495ffd61d0f55 Mon Sep 17 00:00:00 2001 From: Behrang Shafei <50267830+bertiqwerty@users.noreply.github.com> Date: Fri, 26 Jul 2024 15:06:00 +0200 Subject: [PATCH] fmt --- src/value.rs | 2 +- tests/core.rs | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/value.rs b/src/value.rs index f155d54..f601170 100644 --- a/src/value.rs +++ b/src/value.rs @@ -72,7 +72,7 @@ pub type ArrayType = SmallVec<[F; 4]>; /// ``` /// /// Vectors can have arbitrary length and are represented as `Val::Array(SmallVec<[F; 4]>)`. That -/// is, a vector always consists of floats. Vectors of bools or ints do not exist. Further, +/// is, a vector always consists of floats. Vectors of bools or ints do not exist. Further, /// 4 elements are stored on the stack, and if more are needed, they are stored on the heap. /// An example with vectors is shown in the following. /// diff --git a/tests/core.rs b/tests/core.rs index f199193..b8a481e 100644 --- a/tests/core.rs +++ b/tests/core.rs @@ -1054,6 +1054,14 @@ fn test_op_reprs() { test("sin(tan(cos(x)))", &["cos", "sin", "tan"], &[]); test("sin(1+tan(cos(x)))", &["cos", "sin", "tan"], &["+"]); test("sin(-tan(cos(x)))", &["-", "cos", "sin", "tan"], &[]); - test("sin(-tan(y+cos(x-z)))", &["-", "cos", "sin", "tan"], &["+", "-"]); - test("sin(-tan(y+sin(cos(x-z))))", &["-", "cos", "sin", "tan"], &["+", "-"]); + test( + "sin(-tan(y+cos(x-z)))", + &["-", "cos", "sin", "tan"], + &["+", "-"], + ); + test( + "sin(-tan(y+sin(cos(x-z))))", + &["-", "cos", "sin", "tan"], + &["+", "-"], + ); }