Browse Source

Add function info integration test

Bzero 1 year ago
parent
commit
c0ae208074
1 changed files with 9 additions and 0 deletions
  1. 9 0
      numbat-cli/tests/integration.rs

+ 9 - 0
numbat-cli/tests/integration.rs

@@ -159,4 +159,13 @@ fn info_text() {
     numbat().write_stdin("info C").assert().success().stdout(
         predicates::str::contains("Coulomb").and(predicates::str::contains("1 coulomb = ")),
     );
+
+    numbat()
+        .write_stdin("info round")
+        .assert()
+        .success()
+        .stdout(
+            predicates::str::contains("Round")
+                .and(predicates::str::contains("Round to the nearest integer.")),
+        );
 }