Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e2c75b

Browse files
committed
removing over-hash-comment
1 parent faf98da commit 9e2c75b

16 files changed

Lines changed: 44 additions & 44 deletions

test/array_literals.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ok result[0][0] is 'a'
2727
ok result[1]['b'] is 'c'
2828

2929

30-
#### Splats in Array Literals
30+
# Splats in Array Literals
3131

3232
test "array splat expansions with assignments", ->
3333
nums = [1, 2, 3]

test/assignment.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test "compound assignments should not declare", ->
2727
eq Math, (-> Math or= 0)()
2828

2929

30-
#### Compound Assignment
30+
# Compound Assignment
3131

3232
test "boolean operators", ->
3333
nonce = {}
@@ -136,7 +136,7 @@ test "more compound assignment", ->
136136
eq c, val
137137

138138

139-
#### Destructuring Assignment
139+
# Destructuring Assignment
140140

141141
test "empty destructuring assignment", ->
142142
{} = [] = undefined
@@ -251,7 +251,7 @@ test "#1024", ->
251251
eq 2 * [] = 3 + 5, 16
252252

253253

254-
#### Existential Assignment
254+
# Existential Assignment
255255

256256
test "existential assignment", ->
257257
nonce = {}

test/comments.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test "spaced comments with conditional statements", ->
110110
eq nonce, result
111111

112112

113-
#### Block Comments
113+
# Block Comments
114114

115115
###
116116
This is a here-comment.

test/comprehensions.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ test "expression conversion under explicit returns", ->
341341
arrayEq [nonce,nonce,nonce], fn()
342342

343343

344-
#### Implicit Destructuring Assignment
344+
# Implicit Destructuring Assignment
345345

346346
test "implicit destructuring assignment in object of objects", ->
347347
a={}; b={}; c={}

test/control_flow.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# shared identity function
1515
id = (_) -> if arguments.length is 1 then _ else Array::slice.call(arguments)
1616

17-
#### Conditionals
17+
# Conditionals
1818

1919
test "basic conditionals", ->
2020
if false
@@ -198,7 +198,7 @@ test "#748: trailing reserved identifiers", ->
198198
eq nonce, result
199199

200200

201-
#### For / While / Until / Loop
201+
# For / While / Until / Loop
202202

203203
# TODO: refactor while tests
204204

@@ -298,7 +298,7 @@ test "break *not* at the top level", ->
298298
eq 2, someFunc()
299299

300300

301-
#### Switch
301+
# Switch
302302

303303
# TODO: refactor switch tests
304304

test/exception_handling.coffee

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
nonce = {}
66

77

8-
#### Throw
8+
# Throw
99

1010
test "basic exception throwing", ->
1111
throws (-> throw 'error'), 'error'
1212

1313

14-
#### Empty Try/Catch/Finally
14+
# Empty Try/Catch/Finally
1515

1616
test "try can exist alone", ->
1717
try
@@ -43,7 +43,7 @@ test "single-line try/catch/finally with empty try, empty catch, empty finally",
4343
try catch err then finally
4444

4545

46-
#### Try/Catch/Finally as an Expression
46+
# Try/Catch/Finally as an Expression
4747

4848
test "return the result of try when no exception is thrown", ->
4949
result = try
@@ -81,7 +81,7 @@ test "optional catch", ->
8181
eq nonce, fn()
8282

8383

84-
#### Try/Catch/Finally Interaction With Other Constructs
84+
# Try/Catch/Finally Interaction With Other Constructs
8585

8686
test "try/catch with empty catch as last statement in a function body", ->
8787
fn = ->

test/formatting.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test "multiple semicolon-separated statements in parentheticals", ->
2121
eq nonce, (1; 2; nonce)
2222
eq nonce, (-> return (1; 2; nonce))()
2323

24-
#### Line Continuation
24+
# Line Continuation
2525

2626
# Property Access
2727

test/function_invocation.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ obj =
268268
ok obj[obj.index++].method([]...), 'should cache base value'
269269

270270

271-
#### Splats in Function Invocations
271+
# Splats in Function Invocations
272272

273273
test "passing splats to functions", ->
274274
arrayEq [0..4], id id [0..4]...
@@ -315,7 +315,7 @@ test "#1011: passing a splat to a method of a number", ->
315315
eq '1011', (131.0).toString [5]...
316316

317317

318-
#### Implicit Return
318+
# Implicit Return
319319

320320
eq ok, new ->
321321
ok
@@ -355,7 +355,7 @@ test "preserve context when generating closure wrappers for expression conversio
355355
eq nonce, obj.property
356356

357357

358-
#### Explicit Returns
358+
# Explicit Returns
359359

360360
test "don't wrap \"pure\" statements in a closure", ->
361361
nonce = {}

test/function_literals.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# * Parameter Destructuring
1212
# * Default Parameters
1313

14-
#### Function Definition
14+
# Function Definition
1515

1616
x = 1
1717
y = {}
@@ -46,7 +46,7 @@ del = -> 5
4646
ok del() is 5
4747

4848

49-
#### Bound Function Definition
49+
# Bound Function Definition
5050

5151
obj =
5252
bound: ->
@@ -64,7 +64,7 @@ ok obj isnt obj.unbound()
6464
eq obj, obj.nested()
6565

6666

67-
#### Parameter List Features
67+
# Parameter List Features
6868

6969
test "splats", ->
7070
arrayEq [0, 1, 2], (((splat...) -> splat) 0, 1, 2)

test/helpers.coffee

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{starts, ends, compact, count, merge, extend, flatten, del, last} = CoffeeScript.helpers
66

77

8-
#### `starts`
8+
# `starts`
99

1010
test "the `starts` helper tests if a string starts with another string", ->
1111
ok starts('01234', '012')
@@ -16,7 +16,7 @@ test "the `starts` helper can take an optional offset", ->
1616
ok not starts('01234', '01', 1)
1717

1818

19-
#### `ends`
19+
# `ends`
2020

2121
test "the `ends` helper tests if a string ends with another string", ->
2222
ok ends('01234', '234')
@@ -27,15 +27,15 @@ test "the `ends` helper can take an optional offset", ->
2727
ok not ends('01234', '234', 6)
2828

2929

30-
#### `compact`
30+
# `compact`
3131

3232
test "the `compact` helper removes falsey values from an array, preserves truthy ones", ->
3333
allValues = [1, 0, false, obj={}, [], '', ' ', -1, null, undefined, true]
3434
truthyValues = [1, obj, [], ' ', -1, true]
3535
arrayEq truthyValues, compact(allValues)
3636

3737

38-
#### `count`
38+
# `count`
3939

4040
test "the `count` helper counts the number of occurances of a string in another string", ->
4141
eq 1/0, count('abc', '')
@@ -46,7 +46,7 @@ test "the `count` helper counts the number of occurances of a string in another
4646
eq 2, count('abcdabcd','abc')
4747

4848

49-
#### `merge`
49+
# `merge`
5050

5151
test "the `merge` helper makes a new object with all properties of the objects given as its arguments", ->
5252
ary = [0, 1, 2, 3, 4]
@@ -58,7 +58,7 @@ test "the `merge` helper makes a new object with all properties of the objects g
5858
eq val, merged[key]
5959

6060

61-
#### `extend`
61+
# `extend`
6262

6363
test "the `extend` helper performs a shallow copy", ->
6464
ary = [0, 1, 2, 3]
@@ -69,23 +69,23 @@ test "the `extend` helper performs a shallow copy", ->
6969
eq 2, obj[2]
7070

7171

72-
#### `flatten`
72+
# `flatten`
7373

7474
test "the `flatten` helper flattens an array", ->
7575
success = yes
7676
(success and= typeof n is 'number') for n in flatten [0, [[[1]], 2], 3, [4]]
7777
ok success
7878

7979

80-
#### `del`
80+
# `del`
8181

8282
test "the `del` helper deletes a property from an object and returns the deleted value", ->
8383
obj = [0, 1, 2]
8484
eq 1, del(obj, 1)
8585
ok 1 not of obj
8686

8787

88-
#### `last`
88+
# `last`
8989

9090
test "the `last` helper returns the last item of an array-like object", ->
9191
ary = [0, 1, 2, 3, 4]

0 commit comments

Comments
 (0)