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

Elaborate Layer Lock tests. #90

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

getreuer
Copy link

@getreuer getreuer commented Jun 19, 2024

This elaborates Layer Lock unit tests for PR qmk#23430:

  • Test Layer Lock state functions layer_lock_{on,off,invert}.
  • In MO, LT, and OSL tests, check that pressing Layer Lock a second time unlocks the layer.
  • Test that TO(0) and layer_clear() override Layer Lock.

Also, update return type of layer_lock_set_user() to bool in docs/features/layer_lock.md.

* Test Layer Lock state functions `layer_lock_{on,off,invert}`.
* In MO, LT, and OSL tests, check that pressing Layer Lock a second time
  unlocks the layer.
* Test that `TO(0)` and `layer_clear()` override Layer Lock.

Also, update return type of `layer_lock_set_user()` to `bool` in
docs/features/layer_lock.md.
@drashna
Copy link
Owner

drashna commented Jun 20, 2024

Thanks for the additional tests! More tests == more better!

@drashna drashna merged commit 351f16d into drashna:feature/layer_lock Jun 20, 2024
2 checks passed
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