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 C++ scheme tests #28

Merged
merged 1 commit into from
Apr 30, 2024
Merged

test: add C++ scheme tests #28

merged 1 commit into from
Apr 30, 2024

Conversation

allan2
Copy link
Contributor

@allan2 allan2 commented Mar 18, 2024

This adds a SchemeFromPalette struct, which is used in the C++ implementation's scheme
tests
.

I didn't implement the light and dark functions on Scheme becauseSchemeFromPalette has less fields, and I did not know what to do with the original. The C++ implementation uses an additional struct for this testing, which is similar to what I did here.

Closes #19

This adds a `SchemeFromPalette` struct, which is used in the [C++
implementation's scheme
tests](https://github.com/material-foundation/material-color-utilities/blob/624be32cc1a57cb803262150a9ad58f1a27c1b07/cpp/scheme/scheme.cc).

I didn't implement the `light` and `dark` functions on `Scheme`
because`SchemeFromPalette` has less fields, and I did not know what to
do with the original. The C++ implementation uses an additional struct
for this testing, which is similar to what I did here.
@Aiving Aiving merged commit b1ebf9f into Aiving:master Apr 30, 2024
1 check failed
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.

Additional scheme tests
2 participants