Skip to content

Commit

Permalink
testing that (car '(a b)) returns a. yay! an actual milestone.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Jenson committed Feb 16, 2009
1 parent 732312d commit e81d17a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/test/scala/com/saladwithsteve/lisp/LispSpec.scala
@@ -0,0 +1,27 @@
/** Copyright 2008 Steve Jenson, Inc. */
package com.saladwithsteve.lisp

import scala.util.Sorting
import java.io.{File, FileInputStream}
import net.lag.configgy.Config
import org.specs._

object LispSpec extends Specification {

private def sorted[T <% Ordered[T]](list: List[T]): List[T] = {
val dest = list.toArray
Sorting.quickSort(dest)
dest.toList
}

"Lisp" should {
doAfter {
}

"Simple unsugared syntax" in {
"Car should return first element" in {
Lisp.eval(List(Car(List('a, 'b)))) mustEqual 'a
}
}
}
}

0 comments on commit e81d17a

Please sign in to comment.