Skip to content

Commit

Permalink
add test for inlined ALL_IDS
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Nov 25, 2024
1 parent 7989dc3 commit 3d09ffb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/message/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ solana-message = { path = ".", features = ["dev-context-only-utils"] }
solana-nonce = { workspace = true }
solana-program = { path = "../program" }
solana-sha256-hasher = { workspace = true }
solana-sysvar = { workspace = true }
static_assertions = { workspace = true }

[features]
Expand Down
5 changes: 5 additions & 0 deletions sdk/message/src/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,4 +1019,9 @@ mod tests {
Hash::from_str("7VWCF4quo2CcWQFNUayZiorxpiR5ix8YzLebrXKf3fMF").unwrap()
)
}

#[test]
fn test_inline_all_ids() {
assert_eq!(solana_sysvar::ALL_IDS.to_vec(), ALL_IDS.to_vec());
}
}

0 comments on commit 3d09ffb

Please sign in to comment.