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

test: add tests for timecontrol #715

Merged
merged 19 commits into from
Sep 28, 2024
Merged

Conversation

gahtan-syarif
Copy link
Contributor

No description provided.

TimeControl tc(limits);

CHECK(tc.updateTime(5555) == true);
CHECK(tc.getTimeLeft() == 4645);
Copy link
Owner

Choose a reason for hiding this comment

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

instead of hardcoding the value here you can instead write the expression which calculates this, like the time + increment - 5555 + increment, makes it easier to follow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh ok

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed 👍

@Disservin Disservin merged commit 6a42db9 into Disservin:master Sep 28, 2024
9 checks passed
@gahtan-syarif gahtan-syarif deleted the tc_tests branch September 28, 2024 11:19
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