Closed fzembow closed 6 years ago
Merging #6 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #6 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 7 8 +1
Lines 112 122 +10
Branches 30 33 +3
=====================================
+ Hits 112 122 +10
Impacted Files | Coverage Δ | |
---|---|---|
src/recurseRandomWord.js | 100% <100%> (ø) |
|
src/index.js | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 21bedf5...ef35626. Read the comment docs.
This looks good but I'd like to review properly later :)
@fzembow Are you able to make the requested changes? I'm happy to make them if you are unable to do so as I'd like to get these changes merged in :)
@lyndseybrowning my apologies, in the intervening period I left my job and moved apartments so just getting back into things now :)
Addressed your changes, let me know if you see any other issues.
Cheers, f
Lovely, looks good. Thanks 👍
Implements #5
Taking advantage of the trie structure to quickly get random words.
Also relaxed the constraint that prefixes be non zero-length strings. This way,
getWords
andgetPrefix
can reuse the same backing implementation.