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

Add test coverage for get_constant_from_var_name #1663

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tcoratger
Copy link
Contributor

Add test coverage for get_constant_from_var_name

Description

Add a series of unit tests for get_constant_from_var_name hint util method.

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.
    • CHANGELOG has been updated.

@fmoletta fmoletta added the tests Implementation of tests label Apr 16, 2024
]);

assert_eq!(
*get_constant_from_var_name("MAX_LOW", &ids_data).unwrap(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @tcoratger !
I think you forget to change the variable name here &constants


#[test]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
fn test_get_constant_from_var_name_without_point() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this test any different from the one above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Implementation of tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants