diff --git a/build/unit_test_assets/AssetManifest.json b/build/unit_test_assets/AssetManifest.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/build/unit_test_assets/AssetManifest.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/build/unit_test_assets/FontManifest.json b/build/unit_test_assets/FontManifest.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/build/unit_test_assets/FontManifest.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/build/unit_test_assets/NOTICES.Z b/build/unit_test_assets/NOTICES.Z new file mode 100644 index 0000000..f15e117 Binary files /dev/null and b/build/unit_test_assets/NOTICES.Z differ diff --git a/build/unit_test_assets/shaders/ink_sparkle.frag b/build/unit_test_assets/shaders/ink_sparkle.frag new file mode 100644 index 0000000..0bb5a14 Binary files /dev/null and b/build/unit_test_assets/shaders/ink_sparkle.frag differ diff --git a/deps.edn b/deps.edn index d205e5a..bbee08b 100644 --- a/deps.edn +++ b/deps.edn @@ -1,7 +1,7 @@ {:paths ["lib/src" "lib/test"] :deps {tensegritics/clojuredart {:git/url "git@github.com: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"}} diff --git a/lib/test/wevre/nums_test.cljd b/lib/test/wevre/nums_test.cljd new file mode 100644 index 0000000..e37c5ae --- /dev/null +++ b/lib/test/wevre/nums_test.cljd @@ -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)) diff --git a/pubspec.lock b/pubspec.lock index 470e016..48a7f3b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,26 +5,26 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: a36ec4843dc30ea6bf652bf25e3448db6c5e8bcf4aa55f063a5d1dad216d8214 + sha256: "405666cd3cf0ee0a48d21ec67e65406aad2c726d9fa58840d3375e7bdcd32a07" url: "https://pub.dev" source: hosted - version: "58.0.0" + version: "60.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: cc4242565347e98424ce9945c819c192ec0838cb9d1f6aa4a97cc96becbc5b27 + sha256: "1952250bd005bacb895a01bf1b4dc00e3ba1c526cf47dca54dfe24979c65f5b3" url: "https://pub.dev" source: hosted - version: "5.10.0" + version: "5.12.0" args: dependency: transitive description: name: args - sha256: "4cab82a83ffef80b262ddedf47a0a8e56ee6fbf7fe21e6e768b02792034dd440" + sha256: c372bb384f273f0c2a8aaaa226dad84dc27c8519a691b888725dec59518ad53a url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" async: dependency: transitive description: @@ -53,10 +53,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" convert: dependency: transitive description: @@ -77,10 +77,10 @@ packages: dependency: transitive description: name: crypto - sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.3" file: dependency: transitive description: @@ -213,42 +213,42 @@ packages: dependency: transitive description: name: pub_semver - sha256: "307de764d305289ff24ad257ad5c5793ce56d04947599ad68b3baa124105fc17" + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.4" shelf: dependency: transitive description: name: shelf - sha256: c24a96135a2ccd62c64b69315a14adc5c3419df63b4d7c05832a346fdb73682c + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.4.1" shelf_packages_handler: dependency: transitive description: name: shelf_packages_handler - sha256: aef74dc9195746a384843102142ab65b6a4735bb3beea791e63527b88cc83306 + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" shelf_static: dependency: transitive description: name: shelf_static - sha256: e792b76b96a36d4a41b819da593aff4bdd413576b3ba6150df5d8d9996d2e74c + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" shelf_web_socket: dependency: transitive description: name: shelf_web_socket - sha256: a988c0e8d8ffbdb8a28aa7ec8e449c260f3deb808781fe1284d22c5bba7156e8 + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" source_map_stack_trace: dependency: transitive description: @@ -269,10 +269,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -309,50 +309,50 @@ packages: dependency: "direct dev" description: name: test - sha256: ce63f9d79c7b5ae87b8756b92deb0b78bdfb3a6421226b7cd03bf9e414d560ed + sha256: "4f92f103ef63b1bbac6f4bd1930624fca81b2574464482512c4f0896319be575" url: "https://pub.dev" source: hosted - version: "1.24.0" + version: "1.24.2" test_api: dependency: transitive description: name: test_api - sha256: "6b12a91cd2febdb6f7e7d92c00d1d0c01d88bffc7fe36b1ed236f0cc37cb5ca4" + sha256: daadc9baabec998b062c9091525aa95786508b1c48e9c30f1f891b8bf6ff2e64 url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.5.2" test_core: dependency: transitive description: name: test_core - sha256: "4f44e9d888186f91f93ca581d6962424e796b9317acc3a1a997ab86753bf4717" + sha256: "3642b184882f79e76ca57a9230fb971e494c3c1fd09c21ae3083ce891bcc0aa1" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.5.2" transit_dart: dependency: "direct main" description: name: transit_dart - sha256: "047219ae23b1952a3b7f9af50b35f597275b663a53825670fffc3a6cd1660e6e" + sha256: e920079d698f177b53aa2301b0e6ca696b08f1f39128699dadd21ee033d824e2 url: "https://pub.dev" source: hosted - version: "0.8.81" + version: "0.8.90" typed_data: dependency: transitive description: name: typed_data - sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5" + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.2" vm_service: dependency: transitive description: name: vm_service - sha256: f6deed8ed625c52864792459709183da231ebf66ff0cf09e69b573227c377efe + sha256: f3743ca475e0c9ef71df4ba15eb2d7684eecd5c8ba20a462462e4e8b561b2e11 url: "https://pub.dev" source: hosted - version: "11.3.0" + version: "11.6.0" watcher: dependency: transitive description: @@ -365,10 +365,10 @@ packages: dependency: transitive description: name: web_socket_channel - sha256: ca49c0bc209c687b887f30527fb6a9d80040b072cc2990f34b9bec3e7663101b + sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.0" webkit_inspection_protocol: dependency: transitive description: @@ -381,9 +381,9 @@ packages: dependency: transitive description: name: yaml - sha256: "23812a9b125b48d4007117254bca50abb6c712352927eece9e155207b1db2370" + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" url: "https://pub.dev" source: hosted - version: "3.1.1" + version: "3.1.2" sdks: dart: ">=2.19.4 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index a6d3636..ba9a3bc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ environment: sdk: '>=2.19.4 <3.0.0' dependencies: - transit_dart: ^0.8.88 + transit_dart: ^0.8.90 dev_dependencies: lints: ^2.0.0 diff --git a/resources/notes/notes -- todo.txt b/resources/notes/notes -- todo.txt index c377470..4d60d5d 100644 --- a/resources/notes/notes -- todo.txt +++ b/resources/notes/notes -- todo.txt @@ -18,6 +18,9 @@ :section Done + [✓] Check out the nums_test file. I can't get an object to decode all the way + back to dart/clojuredart objects. + [✓] Get roundtrip testing with transit-format/verify working. [✓] ClojureDart maybe has a way to put test files in test/cljd-out? It's