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

Check that base has a logger installed in tutorial #1073

Merged
merged 4 commits into from
Jan 31, 2023
Merged

Conversation

xsebek
Copy link
Member

@xsebek xsebek commented Jan 31, 2023

let baseDevs = gs ^?! baseRobot . equippedDevices
in assertBool "Base should have a logger installed!" (not . null $ lookupByName "logger" baseDevs)

testTutorialSolution t f = testSolution' t f CheckForBadErrors tutorialHasLog
Copy link
Member

Choose a reason for hiding this comment

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

Could testTutorialSolution be defined in terms of testTutorialSolution'?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, but given the order of parameters, you would not gain anything right now.

If we add more conditions, then it might be worth refactoring. 🙂

@xsebek xsebek added the merge me Trigger the merge process of the Pull request. label Jan 31, 2023
@mergify mergify bot merged commit e08f342 into main Jan 31, 2023
@mergify mergify bot deleted the tutorial-logger branch January 31, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test that all tutorial scenarios have a logger
3 participants