mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-08 01:28:15 -07:00
global: adding support for safe lengths
This commit is contained in:
@@ -85,7 +85,13 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn parses_single_and_multi() {
|
||||
assert_eq!(TxidsParam::from_query(&format!("txId[]={T1}")).unwrap().txids.len(), 1);
|
||||
assert_eq!(
|
||||
TxidsParam::from_query(&format!("txId[]={T1}"))
|
||||
.unwrap()
|
||||
.txids
|
||||
.len(),
|
||||
1
|
||||
);
|
||||
assert_eq!(
|
||||
TxidsParam::from_query(&format!("txId%5B%5D={T1}&txId[]={T2}"))
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user