Skip to content

Add saddle points practice exercise #507

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

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Add saddle points practice exercise #507

merged 3 commits into from
Sep 10, 2024

Conversation

ryanplusplus
Copy link
Member

@ryanplusplus ryanplusplus commented Sep 9, 2024

I also extended the test generator to allow test helpers to be included so that I could implement an order-independent comparison for the result set.


local function render_matrix(matrix)
return table.concat(map(matrix, function(row)
return '{' .. table.concat(row, ', ') .. '}, --'
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, is there a reason for the line-ending comment here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I meant to leave a comment on this. This prevents the formatter from putting all of the rows of the matrix on the same line. It's basically a hack that lets me avoid adding comments to turn the formatter on and off.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is great work. The generated spec is beautiful.

@ryanplusplus ryanplusplus merged commit 989ef26 into main Sep 10, 2024
3 checks passed
@ryanplusplus ryanplusplus deleted the saddle-points branch September 10, 2024 20:27
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.

3 participants