Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhw committed Mar 5, 2009
1 parent 0283007 commit 72890cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/groovy/org/grumblesmurf/malabar/UtilsTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,14 @@ class UtilsTest
void emptyListIsEmpty() {
assertThat(Utils.asLispList([]), is("()"))
}

@Test
void singletonList() {
assertThat(Utils.asLispList(['a']), is('("a")'))
}

@Test
void nestedList() {
assertThat(Utils.asLispList(['a', ['b'], 'c']), is('("a" ("b") "c")'))
}
}

0 comments on commit 72890cb

Please sign in to comment.