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

feature: added array/repeat. #258

Merged
merged 1 commit into from
Nov 8, 2019
Merged

feature: added array/repeat. #258

merged 1 commit into from
Nov 8, 2019

Conversation

diasbruno
Copy link
Contributor

No description provided.

Comment on lines +13 to +19
it('should create an array of size N and fill with a value "a".', function(){
expect(repeat(2, 'a')).toEqual(['a', 'a']);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind also adding some tests with longer strings as well as numbers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test for the longer string and using a number.

@roboshoes
Copy link
Member

I think we just need to extend the test cases a bit further but other than that I think it's good.

@diasbruno
Copy link
Contributor Author

Sure. I'll add both tests. Thanks, @roboshoes.

@roboshoes
Copy link
Member

Thank you.

@roboshoes roboshoes merged commit f158927 into mout:master Nov 8, 2019
@roboshoes
Copy link
Member

I've merged you're contribution and it's live on 1.2.2. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants