File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
exercises/practice/rectangles Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1
- # This is an auto-generated file. Regular comments will be removed when this
2
- # file is regenerated. Regenerating will not touch any manually added keys,
3
- # so comments can be added in a "comment" key.
1
+ # This is an auto-generated file.
2
+ #
3
+ # Regenerating this file via `configlet sync` will:
4
+ # - Recreate every `description` key/value pair
5
+ # - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6
+ # - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7
+ # - Preserve any other key/value pair
8
+ #
9
+ # As user-added comments (using the # character) will be removed when this file
10
+ # is regenerated, comments can be added via a `comment` key.
4
11
5
12
[485b7bab-4150-40aa-a8db-73013427d08c ]
6
13
description = " no rows"
@@ -40,3 +47,6 @@ description = "corner is required for a rectangle to be complete"
40
47
41
48
[d78fe379-8c1b-4d3c-bdf7-29bfb6f6dc66 ]
42
49
description = " large input with many rectangles"
50
+
51
+ [6ef24e0f-d191-46da-b929-4faca24b4cd2 ]
52
+ description = " rectangles must have four sides"
Original file line number Diff line number Diff line change @@ -109,4 +109,16 @@ describe('rectangles', function()
109
109
' +-+' --
110
110
}))
111
111
end )
112
+
113
+ it (' rectangles must have four sides' , function ()
114
+ assert .equal (5 , rectangles .count ({
115
+ ' +-+ +-+' , -- ,
116
+ ' | | | |' , -- ,
117
+ ' +-+-+-+' , -- ,
118
+ ' | | ' , -- ,
119
+ ' +-+-+-+' , -- ,
120
+ ' | | | |' , -- ,
121
+ ' +-+ +-+' --
122
+ }))
123
+ end )
112
124
end )
You can’t perform that action at this time.
0 commit comments