aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/world
diff options
context:
space:
mode:
authorEduardo Julian2022-10-02 19:25:33 -0400
committerEduardo Julian2022-10-02 19:25:33 -0400
commited779c7bbbf3c625461fd1c09c1a3c39eaabd9d6 (patch)
tree0875aef89507986149c24f771feb7852c7170a89 /stdlib/source/test/lux/world
parentba150e8a206ffba1c5313c26fa88c6dcba6a08aa (diff)
New format for extensions [part 4]
Diffstat (limited to 'stdlib/source/test/lux/world')
-rw-r--r--stdlib/source/test/lux/world/net.lux34
1 files changed, 34 insertions, 0 deletions
diff --git a/stdlib/source/test/lux/world/net.lux b/stdlib/source/test/lux/world/net.lux
new file mode 100644
index 000000000..a6d74f5c6
--- /dev/null
+++ b/stdlib/source/test/lux/world/net.lux
@@ -0,0 +1,34 @@
+(.require
+ [library
+ [lux (.except)
+ [abstract
+ [monad (.only do)]]
+ [math
+ ["[0]" random (.only Random)]]
+ [test
+ ["_" property (.only Test)]]]]
+ [\\library
+ ["[0]" /]]
+ ["[0]" /
+ ["[1][0]" http
+ ["[1]/[0]" client]
+ ["[1]/[0]" status]]])
+
+(def .public test
+ Test
+ (<| (_.covering /._)
+ (do [! random.monad]
+ [])
+ (all _.and
+ (_.coverage [/.Host]
+ true)
+ (_.coverage [/.Port]
+ true)
+ (_.coverage [/.URL]
+ true)
+ (_.coverage [/.Address]
+ true)
+
+ /http/client.test
+ /http/status.test
+ )))