Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing that (car '(a b)) returns a. yay! an actual milestone.
- Loading branch information
Steve Jenson
committed
Feb 16, 2009
1 parent
732312d
commit e81d17a
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
} | ||
} |