Skip to content

Commit 343811e

Browse files
committed
Fix printing of diffed structures on babashka
1 parent 863520c commit 343811e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Unreleased
22

3-
## Added
4-
53
## Fixed
64

7-
## Changed
5+
- Fix printing of mismatch/deletion/insertion on Babashka
86

97
# 2.6.166 (2022-11-25 / 06fec7e)
108

bb.edn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{:deps
2-
{lambdaisland/open-source {:git/url "https://github.com/lambdaisland/open-source"
2+
{lambdaisland/deep-diff2 {:local/root "."}
3+
lambdaisland/open-source {:git/url "https://github.com/lambdaisland/open-source"
34
:git/sha "f2133b2a88bff3898e027c9b50516161c237792e"}}
45
:tasks
56
{test:bb {:doc "Run babashka tests with custom runner"

src/lambdaisland/deep_diff2/printer_impl.cljc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@
103103
the class of the object. For ClojureScript, gets either the `name` attribute
104104
or the protocol name if the `name` attribute doesn't exist."
105105
[x]
106-
#?(:clj
106+
#?(:bb
107+
(symbol (str (type x)))
108+
:clj
107109
(symbol (.getName (class x)))
108110
:cljs
109111
(let [t (type x)

0 commit comments

Comments
 (0)