Skip to content

Commit

Permalink
pretty print empty objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbicodes committed Sep 7, 2023
1 parent c4ea41e commit 826feb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function testExercisesUntilFail() {
}

//testSolution(randExercise())
testSolution("say")
//testSolution("say")
//loadExercise("all_your_base")
//testExercisesUntilFail()
//testExercises()
3 changes: 2 additions & 1 deletion src/clj/pprint.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@
:else (pr-str obj)))

(defn pprint [obj]
(pp- obj 0))
(if (empty? obj) (str obj)
(pp- obj 0)))

0 comments on commit 826feb3

Please sign in to comment.