8000 repeatString test should check for random inputs · Issue #72 · TheOdinProject/javascript-exercises · GitHub
[go: up one dir, main page]

Skip to content
repeatString test should check for random inputs #72
@I3uckwheat

Description

@I3uckwheat

In this test a new test should be added that inputs random numbers to help prevent hard-coding solutions.

There should also be some comments explaining the random number generation.

One should use regex to verify the return value of repeatString called with a random input. Regex should be used to prevent giving away a solution.

A solution for the regex is below:

"function return value".match(/((hey))/).length === random number

This is for first-time contributors only

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0