-
Notifications
You must be signed in to change notification settings - Fork 623
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
chore(console): improve console test coverage #3839
chore(console): improve console test coverage #3839
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Right direction. Just one suggestion for how runLengthTestCases
is structured.
console/_rle_test.ts
Outdated
const runLengthTestCases: [number[], { d: string; r: string }, string][] = [ | ||
[ | ||
[1, 2, 3, 4, 5], | ||
{ d: "AQIDBAU=", r: "AQEBAQE=" }, | ||
"return expected value if input is normal value", | ||
], | ||
[ | ||
[1, 1, 1, 1], | ||
{ d: "AQ==", r: "BA==" }, | ||
"return expected value if input includes an continuous value", | ||
], | ||
[ | ||
[], | ||
{ d: "", r: "" }, | ||
"return expected value if input is empty", | ||
], | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we able to turn this into an array of objects? It'd be a little easier to follow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice work. Thank you.
Related issue #3713
what I did
runLengthEncode()
testrunLengthDecode()
testcoverage change
https://app.codecov.io/gh/denoland/deno_std/commit/145c81a3c648f8c0d108f1517536cdfc0f487522/indirect-changes