Sha256: 299b94757484aaaf202ad3ef516adc82b93fbb4481ccdeea4df1d604a7cc85e7
Contents?: true
Size: 1.16 KB
Versions: 68
Compression:
Stored size: 1.16 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 JavaScript to install the necessary dependencies: http://exercism.io/languages/javascript ## Making the Test Suite Pass Execute the tests with: jasmine <exercise-name>.spec.js Replace `<exercise-name>` with the name of the current exercise. E.g., to test the Hello World exercise: jasmine hello-world.spec.js In many test suites all but the first test have been skipped. Once you get a test passing, you can unskip the next one by changing `xit` to `it`. ## 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