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 load_bottom hint test #444

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Add load_bottom hint test #444

merged 1 commit into from
Dec 4, 2024

Conversation

GMKrieger
Copy link
Collaborator

Issue Number: N/A

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

Add new test for state.rs load_bottom hint.

Breaking changes?

  • yes
  • no

@GMKrieger GMKrieger self-assigned this Nov 29, 2024
@GMKrieger GMKrieger force-pushed the test/starknet-os-hints branch from 56e78d2 to 9b2c722 Compare December 2, 2024 17:51
Comment on lines +570 to +574
let expected_x: Felt252 = 2_usize.into();
let expected_y: Felt252 = 3_usize.into();

assert_eq!(x.to_raw(), expected_x.to_raw());
assert_eq!(y.to_raw(), expected_y.to_raw());
Copy link
Collaborator

Choose a reason for hiding this comment

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

There are some useful constants you could use (Felt252::TWO and Felt252::THREE)

@GMKrieger GMKrieger merged commit 9b2c722 into main Dec 4, 2024
6 checks passed
@GMKrieger GMKrieger deleted the test/starknet-os-hints branch December 4, 2024 12:47
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.

3 participants