aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/world/net.lux
blob: 13fb2729547539d96e39c19f7e26877beca66a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(.require
 [library
  [lux (.except)
   [abstract
    [monad (.only do)]]
   [math
    ["[0]" random (.only Random)]]
   [test
    ["_" property (.only Test)]]]]
 [\\library
  ["[0]" /]]
 ["[0]" /
  ["[1][0]" mime]
  ["[1][0]" uri]
  ["[1][0]" http]])

(def .public test
  Test
  (<| (_.covering /._)
      (do [! random.monad]
        [])
      (all _.and
           (_.coverage [/.Host]
             true)
           (_.coverage [/.URL]
             true)
           (_.coverage [/.Address
                        /.#host /.#port]
             true)

           /mime.test
           /http.test
           /uri.test
           )))