From 44525cba81cea327437617cc4e7a00b3abcfec0f Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 1 Aug 2021 20:58:35 -0600 Subject: [PATCH] formatting --- .../nat-archive-tool/extern-files/python/import.hx | 2 +- projects/nat-archive-tool/src/test/TestMain.kiss | 12 ------------ .../src/requests_externs/Requests.hx | 5 +++-- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/projects/nat-archive-tool/extern-files/python/import.hx b/projects/nat-archive-tool/extern-files/python/import.hx index 22c82133..03e1b9fa 100644 --- a/projects/nat-archive-tool/extern-files/python/import.hx +++ b/projects/nat-archive-tool/extern-files/python/import.hx @@ -1,2 +1,2 @@ import requests_externs.Response; -import requests_externs.Requests; \ No newline at end of file +import requests_externs.Requests; diff --git a/projects/nat-archive-tool/src/test/TestMain.kiss b/projects/nat-archive-tool/src/test/TestMain.kiss index e50b2990..4c1be0b8 100644 --- a/projects/nat-archive-tool/src/test/TestMain.kiss +++ b/projects/nat-archive-tool/src/test/TestMain.kiss @@ -1,21 +1,13 @@ // External programs can load Lib.kiss with (loadFrom "nat-archive-tool" "src/nat/Lib.kiss") (load "../nat/Lib.kiss") -(print "dicks") - (assert (BoolExpInterp.eval "true" [])) -(print "dicks") (assert !(BoolExpInterp.eval "false" [])) -(print "dicks") (assert !(BoolExpInterp.eval "flag" [])) -(print "dicks") (assert (BoolExpInterp.eval "flag" ["flag"])) -(print "dicks") (assert !(BoolExpInterp.eval "(and flag false)" ["flag"])) -(print "dicks") (assert (BoolExpInterp.eval "(or flag otherFlag)" ["otherFlag"])) -(print "dicks") (let [archive (new Archive "src/test/example-archive") song1 @@ -23,7 +15,6 @@ song2 (dictGet archive.entries "song2")] -(print "dicks") (assert (hasComponent song1 Tags)) (assert (hasComponent song2 Tags)) (assert (componentsMatch song1 "(and Name Author)")) @@ -32,7 +23,6 @@ (assert !(tagsMatch archive song1 "(and song religious)")) (assert (tagsMatch archive song2 "(and song religious)")) (assert !(tagsMatch archive song2 "(and song western)")) -(print "dicks") (withWritableComponents archive song1 [author Author @@ -40,8 +30,6 @@ (assert (= author "Rafael Krux")) (assert (= name "Adventure")))) -(print "dicks") - (let [wikipedia (new MediaWikiSystem "https://en.wikipedia.org/w/api.php" null null 1)] //~(wikipedia.queryProp ["Phoenix Wright"] ["images"]) 0 diff --git a/projects/requests-externs/src/requests_externs/Requests.hx b/projects/requests-externs/src/requests_externs/Requests.hx index cee784b5..4006854d 100644 --- a/projects/requests-externs/src/requests_externs/Requests.hx +++ b/projects/requests-externs/src/requests_externs/Requests.hx @@ -23,8 +23,9 @@ class Requests { return NativeRequests.get(url, mapToDict(params), kwArgs); } - static function mapToDict(?map:Map) { - if (map == null) return null; + static function mapToDict(?map:Map) { + if (map == null) + return null; var dict = new Dict(); for (key => value in map) { dict.set(key, value);