mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
57 lines
937 B
Text
57 lines
937 B
Text
Literate CoffeeScript Test
|
|
--------------------------
|
|
|
|
comment comment
|
|
|
|
test "basic literate CoffeeScript parsing", ->
|
|
ok yes
|
|
|
|
now with a...
|
|
|
|
test "broken up indentation", ->
|
|
|
|
... broken up ...
|
|
|
|
do ->
|
|
|
|
... nested block.
|
|
|
|
ok yes
|
|
|
|
Code must be separated from text by a blank line.
|
|
|
|
test "code blocks must be preceded by a blank line", ->
|
|
|
|
The next line is part of the text and will not be executed.
|
|
fail()
|
|
|
|
ok yes
|
|
|
|
Code in `backticks is not parsed` and...
|
|
|
|
test "comments in indented blocks work", ->
|
|
do ->
|
|
do ->
|
|
# Regular comment.
|
|
|
|
###
|
|
Block comment.
|
|
###
|
|
|
|
ok yes
|
|
|
|
Regular [Markdown](http://example.com/markdown) features, like links
|
|
and unordered lists, are fine:
|
|
|
|
* I
|
|
|
|
* Am
|
|
|
|
* A
|
|
|
|
* List
|
|
|
|
Tabs work too:
|
|
|
|
test "tabbed code", ->
|
|
ok yes
|