Skip to content
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

Add largest-series-product exercise #8

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

ErikSchierboom
Copy link
Member

@ErikSchierboom ErikSchierboom commented Nov 12, 2024

@vaeng This is just to discuss what you think about the testing file. The test names are comments at the end of the line for now

@vaeng
Copy link
Contributor

vaeng commented Nov 12, 2024

That is the way I would have done it as well. A file with a named function, which is called by test-runner.

Desriptions as comments, will become handy for later maintenance. For the C++ track I started to include UUIDs, to automate changing tests that keep the same name.

@ErikSchierboom ErikSchierboom marked this pull request as ready for review November 12, 2024 19:58
Comment on lines +1 to +3
Validate ← |2.2 ⍤ "span must be smaller than string length" ◡(≤⧻) ⍤ "span must not be negative" ≥0 ,
Digits ← |1 ⍣(∵⋕) (⍤ "invalid character in digits")
LargestProduct ← |2 /↥ ≡/× ⍣(◫) [1] : Digits Validate
Copy link
Member Author

Choose a reason for hiding this comment

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

I must admit that being able to write this few characters and have it work makes me feel a little bit giddy :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I feel you. This lets me feel like I am in the matrix

@ErikSchierboom ErikSchierboom merged commit 3069af5 into main Nov 12, 2024
1 of 2 checks passed
@vaeng vaeng deleted the largest-series-product branch November 19, 2024 08:54
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.

2 participants