Skip to content

Commit

Permalink
Add test for interpreting empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
maryrosecook committed Mar 4, 2014
1 parent f28a8d5 commit c6a1b38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions littlelisp.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ describe('littleLisp', function() {

describe('interpret', function() {
describe('lists', function() {
it('should return empty list', function() {
expect(t.interpret(t.parse('()'))).toEqual([]);
});

it('should return list of strings', function() {
expect(t.interpret(t.parse('("hi" "mary" "rose")'))).toEqual(['hi', "mary", "rose"]);
});
Expand Down

0 comments on commit c6a1b38

Please sign in to comment.