Skip to content

Commit

Permalink
Fix unrelated test
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Oct 25, 2024
1 parent 8f2a499 commit 2dca661
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion substrate/frame/support/test/tests/pallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,10 @@ fn metadata_ir_pallet_runtime_docs() {

let readme = "Support code for the runtime.\n\nLicense: Apache-2.0\n";
let expected = vec![" Pallet documentation", readme, readme];
assert_eq!(pallet.docs, expected);

for (doc, expected) in pallet.docs.iter().zip(expected.iter()) {
assert!(doc.starts_with(expected));
}
}

#[test]
Expand Down

0 comments on commit 2dca661

Please sign in to comment.