chiark / gitweb /
apitest: Introduce tree_walk; at-currency: test wip
[otter.git] / apitest / at-currency.rs
index 1776256da47366ff20132a939915f5764456f5b7..65443fe07cbdb83d8b7345dbecae5eb09d322c10 100644 (file)
@@ -90,7 +90,12 @@ impl Ctx {
     alice.synchu(&mut a_pieces)?;
     // aside has 90, in hand has 9, original hand pos has 309
 
-    bob.synch()?;
+    bob.synchx::<PIB,_>(None, None, |_session, gen, _k, v| v.tree_walk(|k,v| {
+      if let Some(s) = v.as_str() {
+        eprintln!("{} {:?} {:?}", gen, k, s);
+      }
+      Ok::<_,Void>(())
+    }).void_unwrap())?;
 
     let _ = &mut bob;
     let _ = bob;