aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test')
-rw-r--r--stdlib/source/test/aedifex/artifact/snapshot/stamp.lux5
-rw-r--r--stdlib/source/test/aedifex/artifact/time.lux5
-rw-r--r--stdlib/source/test/aedifex/command/auto.lux6
-rw-r--r--stdlib/source/test/aedifex/metadata/artifact.lux14
-rw-r--r--stdlib/source/test/aedifex/metadata/snapshot.lux14
-rw-r--r--stdlib/source/test/lux.lux2
-rw-r--r--stdlib/source/test/lux/control/concurrency/async.lux7
-rw-r--r--stdlib/source/test/lux/control/concurrency/thread.lux9
-rw-r--r--stdlib/source/test/lux/control/function/memo.lux7
-rw-r--r--stdlib/source/test/lux/control/remember.lux9
-rw-r--r--stdlib/source/test/lux/data/format/json.lux13
-rw-r--r--stdlib/source/test/lux/data/format/tar.lux7
-rw-r--r--stdlib/source/test/lux/data/text.lux13
-rw-r--r--stdlib/source/test/lux/debug.lux13
-rw-r--r--stdlib/source/test/lux/world.lux4
-rw-r--r--stdlib/source/test/lux/world/file.lux5
-rw-r--r--stdlib/source/test/lux/world/time.lux (renamed from stdlib/source/test/lux/time.lux)0
-rw-r--r--stdlib/source/test/lux/world/time/date.lux (renamed from stdlib/source/test/lux/time/date.lux)0
-rw-r--r--stdlib/source/test/lux/world/time/day.lux (renamed from stdlib/source/test/lux/time/day.lux)0
-rw-r--r--stdlib/source/test/lux/world/time/duration.lux (renamed from stdlib/source/test/lux/time/duration.lux)0
-rw-r--r--stdlib/source/test/lux/world/time/instant.lux (renamed from stdlib/source/test/lux/time/instant.lux)10
-rw-r--r--stdlib/source/test/lux/world/time/month.lux (renamed from stdlib/source/test/lux/time/month.lux)0
-rw-r--r--stdlib/source/test/lux/world/time/year.lux (renamed from stdlib/source/test/lux/time/year.lux)0
23 files changed, 77 insertions, 66 deletions
diff --git a/stdlib/source/test/aedifex/artifact/snapshot/stamp.lux b/stdlib/source/test/aedifex/artifact/snapshot/stamp.lux
index da8755d6f..2b4265932 100644
--- a/stdlib/source/test/aedifex/artifact/snapshot/stamp.lux
+++ b/stdlib/source/test/aedifex/artifact/snapshot/stamp.lux
@@ -14,8 +14,9 @@
["<[1]>" \\parser]]]]
[math
["[0]" random (.only Random)]]
- [time
- ["[0]" instant]]]]
+ [world
+ [time
+ ["[0]" instant]]]]]
[\\program
["[0]" /]]
["$[0]" //
diff --git a/stdlib/source/test/aedifex/artifact/time.lux b/stdlib/source/test/aedifex/artifact/time.lux
index c81dffa89..2c7d29269 100644
--- a/stdlib/source/test/aedifex/artifact/time.lux
+++ b/stdlib/source/test/aedifex/artifact/time.lux
@@ -15,8 +15,9 @@
["[0]" random (.only Random)]
[number
["i" int]]]
- [time
- ["[0]" instant (.use "[1]#[0]" equivalence)]]]]
+ [world
+ [time
+ ["[0]" instant (.use "[1]#[0]" equivalence)]]]]]
[\\program
["[0]" /]]
["[0]" /
diff --git a/stdlib/source/test/aedifex/command/auto.lux b/stdlib/source/test/aedifex/command/auto.lux
index 564cf6ab0..8cc8177a1 100644
--- a/stdlib/source/test/aedifex/command/auto.lux
+++ b/stdlib/source/test/aedifex/command/auto.lux
@@ -24,14 +24,14 @@
["[0]" random]
[number
["n" nat]]]
- [time
- ["[0]" instant]]
[world
[console (.only Console)]
["[0]" shell (.only Exit Shell)]
["[0]" program (.only Program)]
["[0]" file
- ["[0]" watch]]]]]
+ ["[0]" watch]]
+ [time
+ ["[0]" instant]]]]]
["[0]" //
["$[0]" version]
["$[0]" build]]
diff --git a/stdlib/source/test/aedifex/metadata/artifact.lux b/stdlib/source/test/aedifex/metadata/artifact.lux
index 17770c575..ed5b95b3b 100644
--- a/stdlib/source/test/aedifex/metadata/artifact.lux
+++ b/stdlib/source/test/aedifex/metadata/artifact.lux
@@ -26,15 +26,15 @@
["n" nat]]]
[meta
["[0]" code]]
- ["[0]" time (.only)
- ["[0]" date]
- ["[0]" year]
- ["[0]" month]
- ["[0]" instant]
- ["[0]" duration]]
[world
["[0]" file]
- ["[0]" program]]]]
+ ["[0]" program]
+ ["[0]" time (.only)
+ ["[0]" date]
+ ["[0]" year]
+ ["[0]" month]
+ ["[0]" instant]
+ ["[0]" duration]]]]]
[\\program
["[0]" / (.only)
["/[1]" // (.only)
diff --git a/stdlib/source/test/aedifex/metadata/snapshot.lux b/stdlib/source/test/aedifex/metadata/snapshot.lux
index 46e368dbf..773dd262b 100644
--- a/stdlib/source/test/aedifex/metadata/snapshot.lux
+++ b/stdlib/source/test/aedifex/metadata/snapshot.lux
@@ -26,15 +26,15 @@
["n" nat]]]
[meta
["[0]" code]]
- ["[0]" time (.only)
- ["[0]" date]
- ["[0]" year]
- ["[0]" month]
- ["[0]" instant (.only Instant)]
- ["[0]" duration]]
[world
["[0]" file]
- ["[0]" program]]]]
+ ["[0]" program]
+ ["[0]" time (.only)
+ ["[0]" date]
+ ["[0]" year]
+ ["[0]" month]
+ ["[0]" instant (.only Instant)]
+ ["[0]" duration]]]]]
["$[0]" ///
["[1][0]" artifact
["[1]/[0]" type]
diff --git a/stdlib/source/test/lux.lux b/stdlib/source/test/lux.lux
index d9e4bbc29..7212f5fb4 100644
--- a/stdlib/source/test/lux.lux
+++ b/stdlib/source/test/lux.lux
@@ -55,7 +55,6 @@
["[1][0]" static]
["[1][0]" test]
- ["[1][0]" time]
["[1][0]" world]
["[1][0]" ffi]
@@ -1213,7 +1212,6 @@
/static.test
/test.test
- /time.test
/world.test
/ffi.test
diff --git a/stdlib/source/test/lux/control/concurrency/async.lux b/stdlib/source/test/lux/control/concurrency/async.lux
index e5d175486..42d938ddd 100644
--- a/stdlib/source/test/lux/control/concurrency/async.lux
+++ b/stdlib/source/test/lux/control/concurrency/async.lux
@@ -18,9 +18,10 @@
["[0]" i64]]]
[meta
["@" target]]
- [time
- ["[0]" instant]
- ["[0]" duration]]]]
+ [world
+ [time
+ ["[0]" instant]
+ ["[0]" duration]]]]]
[\\library
["[0]" / (.only)
[//
diff --git a/stdlib/source/test/lux/control/concurrency/thread.lux b/stdlib/source/test/lux/control/concurrency/thread.lux
index 87ba8859a..da2a9ea37 100644
--- a/stdlib/source/test/lux/control/concurrency/thread.lux
+++ b/stdlib/source/test/lux/control/concurrency/thread.lux
@@ -6,14 +6,15 @@
[monad (.only do)]]
[control
["[0]" io]]
- [time
- ["[0]" instant (.only Instant)]
- ["[0]" duration]]
[math
["[0]" random]
[number
["n" nat]
- ["i" int]]]]]
+ ["i" int]]]
+ [world
+ [time
+ ["[0]" instant (.only Instant)]
+ ["[0]" duration]]]]]
[\\library
["[0]" / (.only)
[//
diff --git a/stdlib/source/test/lux/control/function/memo.lux b/stdlib/source/test/lux/control/function/memo.lux
index 1a310744f..1abe7f7f9 100644
--- a/stdlib/source/test/lux/control/function/memo.lux
+++ b/stdlib/source/test/lux/control/function/memo.lux
@@ -20,9 +20,10 @@
[meta
[macro
["^" pattern]]]
- [time
- ["[0]" instant]
- ["[0]" duration (.only Duration)]]]]
+ [world
+ [time
+ ["[0]" instant]
+ ["[0]" duration (.only Duration)]]]]]
[\\library
["[0]" / (.only)
["/[1]" //
diff --git a/stdlib/source/test/lux/control/remember.lux b/stdlib/source/test/lux/control/remember.lux
index 83dc740e8..5f4fae4ac 100644
--- a/stdlib/source/test/lux/control/remember.lux
+++ b/stdlib/source/test/lux/control/remember.lux
@@ -20,10 +20,11 @@
["<[1]>" \\parser]]
["[0]" macro (.only)
["[0]" syntax (.only syntax)]]]
- [time
- ["[0]" date (.only Date)]
- ["[0]" instant]
- ["[0]" duration]]]]
+ [world
+ [time
+ ["[0]" date (.only Date)]
+ ["[0]" instant]
+ ["[0]" duration]]]]]
[\\library
["[0]" /]])
diff --git a/stdlib/source/test/lux/data/format/json.lux b/stdlib/source/test/lux/data/format/json.lux
index bda5d1aba..e057efcfe 100644
--- a/stdlib/source/test/lux/data/format/json.lux
+++ b/stdlib/source/test/lux/data/format/json.lux
@@ -39,12 +39,13 @@
["[0]" syntax (.only syntax)]]
[type
["[0]" unit]]]
- [time
- ["[0]" date]
- ["[0]" instant
- ["[0]/[1]" \\test]]
- ["[0]" duration
- ["[0]/[1]" \\test]]]]]
+ [world
+ [time
+ ["[0]" date]
+ ["[0]" instant
+ ["[0]/[1]" \\test]]
+ ["[0]" duration
+ ["[0]/[1]" \\test]]]]]]
["[0]" \\polytypic]
["[0]" \\parser]
[\\library
diff --git a/stdlib/source/test/lux/data/format/tar.lux b/stdlib/source/test/lux/data/format/tar.lux
index 7f695042d..5665efaec 100644
--- a/stdlib/source/test/lux/data/format/tar.lux
+++ b/stdlib/source/test/lux/data/format/tar.lux
@@ -29,9 +29,10 @@
[number
["n" nat]
["i" int]]]
- [time
- ["[0]" instant (.only Instant)]
- ["[0]" duration]]]]
+ [world
+ [time
+ ["[0]" instant (.only Instant)]
+ ["[0]" duration]]]]]
[\\library
["[0]" /]])
diff --git a/stdlib/source/test/lux/data/text.lux b/stdlib/source/test/lux/data/text.lux
index 82d998311..8aead4f9b 100644
--- a/stdlib/source/test/lux/data/text.lux
+++ b/stdlib/source/test/lux/data/text.lux
@@ -51,12 +51,13 @@
["<[1]>" \\parser]]
[macro
["^" pattern]]]
- ["[0]" time (.only)
- ["[0]" day]
- ["[0]" month]
- ["[0]" instant]
- ["[0]" duration]
- ["[0]" date]]]]
+ [world
+ ["[0]" time (.only)
+ ["[0]" day]
+ ["[0]" month]
+ ["[0]" instant]
+ ["[0]" duration]
+ ["[0]" date]]]]]
["$[0]" //
[format
["[1][0]" xml]
diff --git a/stdlib/source/test/lux/debug.lux b/stdlib/source/test/lux/debug.lux
index ccf72208a..8dae4a18e 100644
--- a/stdlib/source/test/lux/debug.lux
+++ b/stdlib/source/test/lux/debug.lux
@@ -25,12 +25,13 @@
["<[1]>" \\parser]]
["[0]" macro (.only)
[syntax (.only syntax)]]]
- [time (.only Time)
- [instant (.only Instant)]
- [date (.only Date)]
- [duration (.only Duration)]
- [month (.only Month)]
- [day (.only Day)]]]]
+ [world
+ [time (.only Time)
+ [instant (.only Instant)]
+ [date (.only Date)]
+ [duration (.only Duration)]
+ [month (.only Month)]
+ [day (.only Day)]]]]]
[\\library
["[0]" /]]
["$[0]" //
diff --git a/stdlib/source/test/lux/world.lux b/stdlib/source/test/lux/world.lux
index 37b9d2892..e0018ab8b 100644
--- a/stdlib/source/test/lux/world.lux
+++ b/stdlib/source/test/lux/world.lux
@@ -15,7 +15,8 @@
["[1][0]" net
["[1]/[0]" http
["[1]/[0]" client]
- ["[1]/[0]" status]]]])
+ ["[1]/[0]" status]]]
+ ["[1][0]" time]])
(def .public test
Test
@@ -28,4 +29,5 @@
/output/video/resolution.test
/net/http/client.test
/net/http/status.test
+ /time.test
))
diff --git a/stdlib/source/test/lux/world/file.lux b/stdlib/source/test/lux/world/file.lux
index 5133e9c39..faebedb1f 100644
--- a/stdlib/source/test/lux/world/file.lux
+++ b/stdlib/source/test/lux/world/file.lux
@@ -22,8 +22,9 @@
[meta
[macro
["^" pattern]]]
- [time
- ["[0]" instant (.only Instant)]]]]
+ [world
+ [time
+ ["[0]" instant (.only Instant)]]]]]
["[0]" /
["[1][0]" watch]]
[\\library
diff --git a/stdlib/source/test/lux/time.lux b/stdlib/source/test/lux/world/time.lux
index 62c3ec43c..62c3ec43c 100644
--- a/stdlib/source/test/lux/time.lux
+++ b/stdlib/source/test/lux/world/time.lux
diff --git a/stdlib/source/test/lux/time/date.lux b/stdlib/source/test/lux/world/time/date.lux
index c97fd626e..c97fd626e 100644
--- a/stdlib/source/test/lux/time/date.lux
+++ b/stdlib/source/test/lux/world/time/date.lux
diff --git a/stdlib/source/test/lux/time/day.lux b/stdlib/source/test/lux/world/time/day.lux
index eecc8a0fb..eecc8a0fb 100644
--- a/stdlib/source/test/lux/time/day.lux
+++ b/stdlib/source/test/lux/world/time/day.lux
diff --git a/stdlib/source/test/lux/time/duration.lux b/stdlib/source/test/lux/world/time/duration.lux
index e73108548..e73108548 100644
--- a/stdlib/source/test/lux/time/duration.lux
+++ b/stdlib/source/test/lux/world/time/duration.lux
diff --git a/stdlib/source/test/lux/time/instant.lux b/stdlib/source/test/lux/world/time/instant.lux
index 3899c04b9..56a4749ec 100644
--- a/stdlib/source/test/lux/time/instant.lux
+++ b/stdlib/source/test/lux/world/time/instant.lux
@@ -17,12 +17,12 @@
[collection
["[0]" list (.use "[1]#[0]" mix)]]]
[math
- ["[0]" random]]
- [time
- ["[0]" duration (.only Duration)]
- ["[0]" day (.only Day) (.use "[1]#[0]" enum)]]]]
+ ["[0]" random]]]]
[\\library
- ["[0]" /]])
+ ["[0]" / (.only)
+ [//
+ ["[0]" duration (.only Duration)]
+ ["[0]" day (.only Day) (.use "[1]#[0]" enum)]]]])
(def .public test
Test
diff --git a/stdlib/source/test/lux/time/month.lux b/stdlib/source/test/lux/world/time/month.lux
index c87a956cd..c87a956cd 100644
--- a/stdlib/source/test/lux/time/month.lux
+++ b/stdlib/source/test/lux/world/time/month.lux
diff --git a/stdlib/source/test/lux/time/year.lux b/stdlib/source/test/lux/world/time/year.lux
index 0e0dee518..0e0dee518 100644
--- a/stdlib/source/test/lux/time/year.lux
+++ b/stdlib/source/test/lux/world/time/year.lux