Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

largest-series-product: Do not test digits/slices #203

Merged
merged 1 commit into from
Mar 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions exercises/largest-series-product/largest-series-product.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,7 @@ import Series from './largest-series-product';

describe('Series', () => {

it('digits', () => {
expect(new Series('0123456789').digits).toEqual([0,1,2,3,4,5,6,7,8,9]);
});

xit('maintains digit order', () => {
expect(new Series('9876543210').digits).toEqual([9,8,7,6,5,4,3,2,1,0]);
});

xit('returns empty array for no digits', () => {
expect(new Series('').digits).toEqual([]);
});

xit('slices by 2', () => {
expect(new Series('01234').slices(2))
.toEqual([[0, 1], [1, 2], [2, 3], [3, 4]]);
});

xit('slices by 3', () => {
expect(new Series('982347').slices(3))
.toEqual([[9, 8, 2], [8, 2, 3], [2, 3, 4], [3, 4, 7]]);
});

xit('can get the largest product of 2', () => {
it('can get the largest product of 2', () => {
expect(new Series('0123456789').largestProduct(2)).toBe(72);
});

Expand Down