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 command.repeatdly(int count) to both java and c++ #6589

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kytpbs
Copy link
Contributor

@kytpbs kytpbs commented May 6, 2024

Currently, the unit tests fail and there are a lot of print statements for whoever might be checking into this.

The problem is. The exact same function calls create different results between C++ and Java. I may just be the idiot but it seems to require further look into

The debug's are in different commits making it a lot easier to revert them if needed.

@kytpbs kytpbs requested review from a team as code owners May 6, 2024 00:58
Copy link
Contributor

@spacey-sooty spacey-sooty left a comment

Choose a reason for hiding this comment

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

Overall looks good just a few comments. Dunno why C++ would print stuff out especially since Java doesn't, along with this for printing in C++ its generally better to use fmt::print()

@kytpbs
Copy link
Contributor Author

kytpbs commented May 6, 2024

/format

@KangarooKoala
Copy link
Contributor

This was stated in Discord, but tests are probably failing because of an inconsistent order of when the commands in the internal deadline group are checked, which should be fixed by #6602.

@kytpbs kytpbs force-pushed the add-Command.Repeatdly(int-count) branch 7 times, most recently from c21b4cf to 832d5a0 Compare October 7, 2024 00:50
@kytpbs
Copy link
Contributor Author

kytpbs commented Oct 7, 2024

Thanks to #6602 being merged, the tests pass correctly.

I reverted back the print code and rebased them out for a cleaner history.

Starlight220
Starlight220 previously approved these changes Oct 7, 2024
Copy link
Contributor

@KangarooKoala KangarooKoala left a comment

Choose a reason for hiding this comment

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

Nice! Overall looks good, just a few small things.

kytpbs and others added 2 commits October 11, 2024 01:04
also, give better errors

Co-Authored-By: Joseph Eng <91924258+KangarooKoala@users.noreply.github.com>
I didn't know you could just pass by value by doing this thx @KangarooKoala  for pointing it out.

Co-Authored-By: Joseph Eng <91924258+KangarooKoala@users.noreply.github.com>
@kytpbs
Copy link
Contributor Author

kytpbs commented Oct 10, 2024

fix formatting with rebase + force push:

@kytpbs kytpbs force-pushed the add-Command.Repeatdly(int-count) branch from f0d8608 to b569c8f Compare October 10, 2024 22:05
Copy link
Contributor

@KangarooKoala KangarooKoala left a comment

Choose a reason for hiding this comment

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

Looks good to me, for what it's worth.

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.

4 participants