-
Notifications
You must be signed in to change notification settings - Fork 52
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
Additional tests #1369
Additional tests #1369
Conversation
@@ -3,7 +3,10 @@ open Junit_alcotest; | |||
let (suite, _) = | |||
run_and_report( | |||
~and_exit=false, | |||
"Dynamics", | |||
[("Elaboration", Test_Elaboration.elaboration_tests)], | |||
"HazelTests", |
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.
It's still very unclear to me at what level this report is supposed to be built at. A lot of sample repos online just have the full suite or tests. The alcotest documentation lists a module but no clear way to have a bunch of modules in a report.
test/haz3ltest.re
Outdated
("Elaboration", Test_Elaboration.elaboration_tests), | ||
Test_ListUtil.tests, |
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.
I prefer naming the tests in the test module but 🤷
src/util/ListUtil.re
Outdated
/** | ||
Groups elements of a list by a specified key. | ||
|
||
{b Note: The groups are not guaranteed to preserve the order of elements from the original list. } | ||
|
||
@param key | ||
The key function used to determine the grouping key. | ||
|
||
@param xs | ||
The list of elements to be grouped. | ||
|
||
@return | ||
A list of tuples where each tuple contains the grouping key and a list of elements that belong to that group. | ||
*/ |
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.
`Quick, | ||
() => { | ||
let xs = [1, 2, 3, 2]; | ||
check(list(int), "Unique list", [1, 3, 2], ListUtil.dedup(xs)); // TODO: Interesting the order here is messed up because of fold_right |
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.
I can add odoc comments for these if it's how we want to handle it
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.
I'm glad ListUtil works
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
No description provided.