chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd7789
)
at-currency: wip
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 May 2022 14:39:48 +0000
(15:39 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 May 2022 14:39:48 +0000
(15:39 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-currency.rs
patch
|
blob
|
history
diff --git
a/apitest/at-currency.rs
b/apitest/at-currency.rs
index d54bc3d3df2fba9a1439f02a4c6e115256fb4280..dd79806a2a9e64018a0a5c642ab2b0d5109db501 100644
(file)
--- a/
apitest/at-currency.rs
+++ b/
apitest/at-currency.rs
@@
-20,13
+20,16
@@
impl Ctx {
.collect::<ArrayVec<_,1>>()
.into_inner().unwrap();
- let other_pile = [40,20];
+ let other_pile = PosC::new(40,20);
+
alice.api_piece_op_single(PuSynch((&mut a_pieces, bn)).id(), (
"multigrab", json!({ "n": 50, 'z': "q000000000" })
))?;
alice.synch()?;
- let _ = other_pile;
+ alice.api_piece(GH::Ungrab, PuSynch((&mut a_pieces, bn)), other_pile)?;
+ alice.synch()?;
+
}
}