File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
test/lambdaisland/deep_diff2 Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 88
99 strategy :
1010 matrix :
11- os : [ubuntu-latest, macOS-latest, windows-latest ]
11+ os : [ubuntu-latest]
1212
1313 runs-on : ${{ matrix.os }}
1414
Original file line number Diff line number Diff line change 11(ns lambdaisland.deep-diff2.printer-test
22 (:require [clojure.test :refer [deftest testing is are]]
33 [lambdaisland.deep-diff2.diff-impl :as diff]
4- [lambdaisland.deep-diff2.printer-impl :as printer]
5- [clojure.string :as str])
4+ [lambdaisland.deep-diff2.printer-impl :as printer])
65 #? (:clj
76 (:import (java.sql Timestamp)
87 (java.util Date
2625
2726(deftest print-doc-test
2827 (testing " date"
29- (let [expected " \u 001B[31m-#inst \" 2019-04-09T14:57:46.128-00:00\"\u 001B[0m \u 001B[32m+#inst \" 2019-04-10T14:57:46.128-00:00\"\u 001B[0m\n " ]
30- (is (= expected
31- (str/replace (printed (diff/diff #inst " 2019-04-09T14:57:46.128-00:00"
32- #inst " 2019-04-10T14:57:46.128-00:00" ))
33- " \r\n " " \n " )))))
28+ (is (= " \u 001B[31m-#inst \" 2019-04-09T14:57:46.128-00:00\"\u 001B[0m \u 001B[32m+#inst \" 2019-04-10T14:57:46.128-00:00\"\u 001B[0m\n "
29+ (printed (diff/diff #inst " 2019-04-09T14:57:46.128-00:00"
30+ #inst " 2019-04-10T14:57:46.128-00:00" )))))
3431
3532 #? (:bb nil ; ; bb TimeStamp constructor not included as of 1.0.166
3633 :clj
You can’t perform that action at this time.
0 commit comments