-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bumped transit-dart version to fix item convert
- Loading branch information
Showing
9 changed files
with
61 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{:paths ["lib/src" "lib/test"] | ||
:deps {tensegritics/clojuredart | ||
{:git/url "[email protected]:tensegritics/ClojureDart.git" | ||
:sha "0add1cc408f61b1e257bc2b04facf4a5ed0b65ff" #_"471c85b8c2378ddbaba39bbaa7926fbfc75c5ce7"}} | ||
:sha "8d5916c0dc87146dc2e8921aaa7fd5dc3c6c3401" #_"0add1cc408f61b1e257bc2b04facf4a5ed0b65ff" #_"471c85b8c2378ddbaba39bbaa7926fbfc75c5ce7"}} | ||
:aliases {:cljd {:main-opts ["-m" "cljd.build"]} | ||
|
||
:build {:deps {io.github.clojure/tools.build {:git/tag "v0.9.4" :git/sha "76b78fe"}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(ns wevre.nums-test | ||
(:require ["package:test/test.dart" :as test] | ||
[wevre.transit-cljd :as transit])) | ||
|
||
(defn test-nums [] | ||
(let [codec (transit/json) | ||
object {:num1 3.0 :num2 4.0} | ||
_ (println "Object: " object) | ||
encoded (await (.convert (.-encoder codec) object)) | ||
_ (println "Encoded: " encoded) | ||
decoded (await (.convert (.-decoder codec) encoded)) | ||
_ (println "Decoded: " decoded)] | ||
(test/expect decoded (test/equals object)))) | ||
|
||
(defn main [] | ||
(test/test "Testing map of numbers" test-nums)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters