Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra newlines are printed in output from function called from test #1937

Closed
bpringe opened this issue Nov 3, 2022 · 1 comment
Closed
Labels
bug Something isn't working output/repl window

Comments

@bpringe
Copy link
Member

bpringe commented Nov 3, 2022

Repro - If you run the below function by itself the output is printed as expected (no extra newlines), but if you use one of Calva's test commands to run the test that calls the function, the output is printed with extra newlines.

(defn print-stuff []
  (prn "one")
  (prn "two")
  (prn "three"))

(deftest print-stuff-test
  (is (nil? (print-stuff))))

Result of using a test command to run the test:

"one"

"two"

"three"

; 1 tests finished, all passing 👍, ns: 1, vars: 1
@PEZ
Copy link
Collaborator

PEZ commented Nov 3, 2022

Thanks! PR pushed!

@bpringe bpringe closed this as completed in ff3ff75 Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working output/repl window
Projects
None yet
Development

No branches or pull requests

2 participants