chiark / gitweb /
at-currency: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 May 2022 14:39:48 +0000 (15:39 +0100)
committerIan 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

index d54bc3d3df2fba9a1439f02a4c6e115256fb4280..dd79806a2a9e64018a0a5c642ab2b0d5109db501 100644 (file)
@@ -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()?;
+
   }
 }