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

Tests: cmap.py ColorMap and LazyColorMapCache #122

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Conversation

chr5tphr
Copy link
Owner

Add tests for ColorMap and LazyColorMapCache

  • check if various kinds of wrong syntax for ColorMap cause a RuntimeError
  • check if the specified nodes position colors are correct when directly
    calling an instance of ColorMap
  • check if all interpolated colors are correct when directly calling an
    instance of ColorMap
  • check if the specified nodes position colors are correct when using
    ColorMap.palette
  • check if all interpolated colors are correct when using
    ColorMap.palette
  • check if reassigning the source code property of a ColorMap changes
    the color map as expected
  • check if the color map source property reflects the originally
    specified source code
  • check LazyColorMapCache setting, getting and deletion of keys
  • check LazyColorMapCache caching and compilation
  • check LazyColorMapCache len and iter

Add tests for ColorMap and LazyColorMapCache
- check if various kinds of wrong syntax for ColorMap cause a RuntimeError
- check if the specified nodes position colors are correct when directly
  calling an instance of ColorMap
- check if all interpolated colors are correct when directly calling an
  instance of ColorMap
- check if the specified nodes position colors are correct when using
  ColorMap.palette
- check if all interpolated colors are correct when using
  ColorMap.palette
- check if reassigning the source code property of a ColorMap changes
  the color map as expected
- check if the color map source property reflects the originally
  specified source code
- check LazyColorMapCache setting, getting and deletion of keys
- check LazyColorMapCache caching and compilation
- check LazyColorMapCache len and iter
@chr5tphr chr5tphr merged commit 9ca3c24 into master Apr 21, 2022
@chr5tphr chr5tphr deleted the tests-cmap branch April 21, 2022 15:10
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.

None yet

1 participant