Skip to content

Commit b676bc2

Browse files
Rename var in test and rename test (#864)
### What Rename 'entries' var in test to 'entry'. Rename test from 'docs' to 'docs_fn'. ### Why The entries variable contains a single spec entry. The plural is misleading. The docs test contains tests only for docs on functions.
1 parent 7cc466d commit b676bc2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

soroban-sdk/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod budget;
44
mod contract_add_i32;
55
mod contract_assert;
66
mod contract_call_stack;
7-
mod contract_docs;
7+
mod contract_docs_fn;
88
mod contract_invoke;
99
mod contract_overlapping_type_fn_names;
1010
mod contract_snapshot;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ fn test_functional() {
2222

2323
#[test]
2424
fn test_spec() {
25-
let entries = ScSpecEntry::from_xdr(__SPEC_XDR_FN_ADD).unwrap();
25+
let entry = ScSpecEntry::from_xdr(__SPEC_XDR_FN_ADD).unwrap();
2626
let expect = ScSpecEntry::FunctionV0(ScSpecFunctionV0 {
2727
doc: "Add adds\nthings together.".try_into().unwrap(),
2828
name: "add".try_into().unwrap(),
2929
inputs: vec![].try_into().unwrap(),
3030
outputs: vec![].try_into().unwrap(),
3131
});
32-
assert_eq!(entries, expect);
32+
assert_eq!(entry, expect);
3333
}

0 commit comments

Comments
 (0)