Sha256: a2fcb92a1c67786099b7e63393f4a41447d3275759cf0ba6f6f3fcb60d4aacf0
Contents?: true
Size: 1.09 KB
Versions: 68
Compression:
Stored size: 1.09 KB
Contents
# Rectangles Count the rectangles in an ASCII diagram like the one below. ```text +--+ ++ | +-++--+ | | | +--+--+ ``` The above diagram contains 6 rectangles: ```text +-----+ | | +-----+ ``` ```text +--+ | | | | | | +--+ ``` ```text +--+ | | +--+ ``` ```text +--+ | | +--+ ``` ```text +--+ | | +--+ ``` ```text ++ ++ ``` You may assume that the input is always a proper rectangle (i.e. the length of every line equals the length of the first line). ## Setup Go through the setup instructions for ECMAScript to install the necessary dependencies: http://exercism.io/languages/ecmascript ## Requirements Install assignment dependencies: ```bash $ npm install ``` ## Making the test suite pass Execute the tests with: ```bash $ npm test ``` In the test suites all tests but the first have been skipped. Once you get a test passing, you can enable the next one by changing `xtest` to `test`. ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
68 entries across 68 versions & 1 rubygems