Skip to content

Commit

Permalink
Add more tests for digits control
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffany352 committed Aug 30, 2020
1 parent 2bb9e28 commit 451671d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/tests/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,15 @@ fn test_digits() {
"ln(1234) -> digits 100",
"approx. 7.11801620446533345187845043255947530269622802734375 (dimensionless)",
);
test(
"1/7 -> digits 50",
"1/7, approx. 0.1428571428571428571428571428571428571428571428571428 (dimensionless)",
);
test("trillion / 7", "approx. 1.428571e11 (dimensionless)");
test(
"trillion / 7 to digits",
"approx. 142857142857.1 (dimensionless)",
);
}

#[test]
Expand Down

0 comments on commit 451671d

Please sign in to comment.