-
-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
837fe44
commit 1d85e87
Showing
2 changed files
with
45 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
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,36 @@ | ||
# 36 lines 18 code 10 comments 8 blanks | ||
module [square] | ||
# this is a comment | ||
# this is another comment | ||
|
||
a1 = 1 | ||
a2 = 3.14159 # pi | ||
|
||
expect | ||
# simple check | ||
a1 == 1 | ||
|
||
expect | ||
a2 |> Num.toStr == "3.14159" | ||
|
||
## Compute the square | ||
square = \x -> | ||
s = x * x | ||
|
||
# the line above is blank | ||
s | ||
|
||
expect square 3 == 9 | ||
|
||
## """ | ||
## this is not a multiline string, | ||
## it's a doc comment | ||
## """ | ||
multilineString = | ||
""" | ||
# this line is not a comment, it's actually code | ||
The line above is not blank, it's actually code | ||
""" | ||
|
||
expect multilineString |> Str.toUtf8 |> List.first == Ok '#' |