Elf clarified test messages to distinguish interpreter cores.
This commit is contained in:
parent
b8a19d5c79
commit
df6f3f17ae
|
@ -8,7 +8,7 @@ lisp = require '../chapter1/interpreter'
|
|||
|
||||
the_false_value = (cons "false", "boolean")
|
||||
|
||||
describe "Core interpreter", ->
|
||||
describe "Core interpreter #1", ->
|
||||
it "Should handle true statements", ->
|
||||
expect(lisp read "(begin (if (lt 0 1) #t #f))").to.equal(true)
|
||||
it "Should handle false statements", ->
|
||||
|
|
|
@ -5,7 +5,7 @@ expect = chai.expect
|
|||
lisp = require '../chapter3/interpreter'
|
||||
{read, readForms} = require '../chapter1/reader'
|
||||
|
||||
describe "Core interpreter", ->
|
||||
describe "Core interpreter #3", ->
|
||||
it "Should handle if statements", ->
|
||||
expect(lisp read "(begin (if (lt 0 1) #t #f))").to.equal(true)
|
||||
expect(lisp read "(begin (if (lt 1 0) #t #f))").to.equal(false)
|
||||
|
|
Loading…
Reference in New Issue