Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ftheirs committed Oct 15, 2024
1 parent ca1a864 commit ac289f3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions vm/src/hint_processor/builtin_hint_processor/math_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2074,9 +2074,9 @@ mod tests {
hint_code,
exec_scopes_ref!(),
&HashMap::from([
("MAX_LOW".to_string(), Felt252::ZERO),
(MAX_LOW, Felt252::ZERO),
(
"MAX_HIGH".to_string(),
MAX_HIGH,
felt_str!("10633823966279327296825105735305134080")
)
])
Expand Down Expand Up @@ -2114,9 +2114,9 @@ mod tests {
hint_code,
exec_scopes_ref!(),
&HashMap::from([
("MAX_LOW".to_string(), Felt252::ZERO),
(MAX_LOW, Felt252::ZERO),
(
"MAX_HIGH".to_string(),
MAX_HIGH,
felt_str!("10633823966279327296825105735305134080")
)
])
Expand Down Expand Up @@ -2153,9 +2153,9 @@ mod tests {
hint_code,
exec_scopes_ref!(),
&HashMap::from([
("MAX_LOW".to_string(), Felt252::ZERO),
(MAX_LOW, Felt252::ZERO),
(
"MAX_HIGH".to_string(),
MAX_HIGH,
felt_str!("10633823966279327296825105735305134080")
)
])
Expand Down Expand Up @@ -2196,9 +2196,9 @@ mod tests {
hint_code,
exec_scopes_ref!(),
&HashMap::from([
("MAX_LOW".to_string(), Felt252::ZERO),
(MAX_LOW, Felt252::ZERO),
(
"MAX_HIGH".to_string(),
MAX_HIGH,
felt_str!("10633823966279327296825105735305134080")
)
])
Expand Down Expand Up @@ -2234,9 +2234,9 @@ mod tests {
hint_code,
exec_scopes_ref!(),
&HashMap::from([
("MAX_LOW".to_string(), Felt252::ZERO),
(MAX_LOW, Felt252::ZERO),
(
"MAX_HIGH".to_string(),
MAX_HIGH,
felt_str!("10633823966279327296825105735305134080")
)
])
Expand Down Expand Up @@ -2267,7 +2267,7 @@ mod tests {
//Execute the hint
assert_matches!(
run_hint!(vm, ids_data, hint_code),
Err(HintError::MissingConstant(x)) if (*x) == "MAX_HIGH"
Err(HintError::MissingConstant(x)) if (*x) == MAX_HIGH
);
}

Expand Down Expand Up @@ -2298,9 +2298,9 @@ mod tests {
hint_code,
exec_scopes_ref!(),
&HashMap::from([
("MAX_LOW".to_string(), Felt252::from(-1)),
(MAX_LOW, Felt252::from(-1)),
(
"MAX_HIGH".to_string(),
MAX_HIGH,
Felt252::from(-1),
)
])
Expand Down Expand Up @@ -2336,9 +2336,9 @@ mod tests {
hint_code,
exec_scopes_ref!(),
&HashMap::from([
("MAX_LOW".to_string(), Felt252::ZERO),
(MAX_LOW, Felt252::ZERO),
(
"MAX_HIGH".to_string(),
MAX_HIGH,
Felt252::ZERO,
)
])
Expand Down

0 comments on commit ac289f3

Please sign in to comment.