Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiqwerty committed Jul 26, 2024
1 parent 261edc1 commit fc0ea89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub type ArrayType<F> = 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.
///
Expand Down
12 changes: 10 additions & 2 deletions tests/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
&["+", "-"],
);
}

0 comments on commit fc0ea89

Please sign in to comment.