diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-07 20:58:30 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-07 20:58:51 +0000 |
| commit | 6a7a2ddaca798f3cccac394d1fb9f317cbe90de6 (patch) | |
| tree | 4e49e53057b39f75813311ede13f87d238061fe6 /spec/core | |
| parent | spellcheck (diff) | |
| download | alive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.tar.gz alive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.zip | |
add ldoc documentation
Diffstat (limited to 'spec/core')
| -rw-r--r-- | spec/core/cell_spec.moon | 7 | ||||
| -rw-r--r-- | spec/core/pattern_spec.moon | 2 |
2 files changed, 5 insertions, 4 deletions
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 |
