From 6a7a2ddaca798f3cccac394d1fb9f317cbe90de6 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 7 Mar 2020 21:58:30 +0100 Subject: add ldoc documentation --- spec/core/cell_spec.moon | 7 ++++--- spec/core/pattern_spec.moon | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/core/cell_spec.moon b/spec/core/cell_spec.moon index 78861ab..8b6d68b 100644 --- a/spec/core/cell_spec.moon +++ b/spec/core/cell_spec.moon @@ -1,4 +1,5 @@ -import Cell, RootCell, Value, Scope, Registry, globals from require 'core' +import Cell, RootCell from require 'core.cell' +import Value, Scope, Registry, globals from require 'core' import Logger from require 'logger' Logger.init 'silent' @@ -20,14 +21,14 @@ describe 'Cell', -> describe 'RootCell', -> test 'head is always "do"', -> - cell = RootCell\parse {} + cell = Cell\parse_root {} assert.is.equal (Value.sym 'do'), cell\head! cell = RootCell nil, { hello_world, two_plus_two } assert.is.equal (Value.sym 'do'), cell\head! test 'tail is all children', -> - cell = RootCell\parse {} + cell = Cell\parse_root {} assert.is.same {}, cell\tail! cell = RootCell nil, { hello_world, two_plus_two } diff --git a/spec/core/pattern_spec.moon b/spec/core/pattern_spec.moon index 64dbef2..4825dcc 100644 --- a/spec/core/pattern_spec.moon +++ b/spec/core/pattern_spec.moon @@ -1,4 +1,4 @@ -import Pattern, match from require 'core.pattern' +import Pattern, match from require 'core.base.match' import Result, Value from require 'core' -- wrap in non-const result -- cgit v1.2.3