aboutsummaryrefslogtreecommitdiffstats
path: root/alv-lib
diff options
context:
space:
mode:
Diffstat (limited to 'alv-lib')
-rw-r--r--alv-lib/array-.moon5
-rw-r--r--alv-lib/testing.moon6
2 files changed, 5 insertions, 6 deletions
diff --git a/alv-lib/array-.moon b/alv-lib/array-.moon
index 68557cd..1e7e781 100644
--- a/alv-lib/array-.moon
+++ b/alv-lib/array-.moon
@@ -1,6 +1,5 @@
-import Array, Op, PureOp, Builtin, Constant, Error, const, any, T from require 'alv.base'
-import Cell from require 'alv.cell'
-import Tag from require 'alv.tag'
+import Array, Op, PureOp, Builtin, RTNode, Constant, Error, const, any, T from require 'alv.base'
+import Cell, Tag, Dummy from require 'alv.ast'
builtins = require 'alv.builtins'
unpack or= table.unpack
diff --git a/alv-lib/testing.moon b/alv-lib/testing.moon
index a321e43..7abe9f6 100644
--- a/alv-lib/testing.moon
+++ b/alv-lib/testing.moon
@@ -1,5 +1,5 @@
import Constant, Op, Builtin, Input, Error, T, any, const from require "alv.base"
-import Tag, Cell from require "alv"
+import Cell, Tag, Dummy from require "alv.ast"
assert_ = Constant.meta
meta:
@@ -33,7 +33,7 @@ By default, the message contains the failing check expression."
tag = @tag\clone Tag.parse '-1'
inner = Cell tag, {
- Constant.literal T.opdef, assertOp, 'assert'
+ Dummy.literal T.opdef, assertOp
tail[1]
tail[2] or Constant.str "assertion failed: #{tail[1]\stringify 2}"
}
@@ -76,7 +76,7 @@ If not, throws an error."
assert #tail > 1, "'expect=' takes at least two arguments"
children = {
- Constant.literal T.opdef, expectOp, 'assert'
+ Dummy.literal T.opdef, expectOp
tail[1]
}
for arg in *tail[2,]