Skip to content

Commit

Permalink
finished reorganizing test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Jan 3, 2011
1 parent ccae9ea commit 6421c86
Show file tree
Hide file tree
Showing 18 changed files with 443 additions and 417 deletions.
3 changes: 2 additions & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ runTests = (CoffeeScript) ->
# Our test helper function for delimiting different test cases.
global.test = (description, fn) ->
try
fn()
fn.test = {description, currentFile}
fn.call(fn)
catch e
e.description = description if description?
e.source = fn.toString() if fn.toString?
Expand Down
165 changes: 0 additions & 165 deletions test/_test_existence.coffee

This file was deleted.

162 changes: 0 additions & 162 deletions test/_test_pattern_matching.coffee

This file was deleted.

1 change: 1 addition & 0 deletions test/array_literals.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# * Splats in Array Literals

# TODO: refactor array literal tests
# TODO: add indexing and method invocation tests: [1][0] is 1, [].toString()

trailingComma = [1, 2, 3,]
ok (trailingComma[0] is 1) and (trailingComma[2] is 3) and (trailingComma.length is 3)
Expand Down
Loading

0 comments on commit 6421c86

Please sign in to comment.