Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Apr 10, 2024
1 parent 5432e72 commit 131894d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ fn fuzz_var_link_link_var() {
let x = net.alloc();
let y = net.alloc();
let z = net.alloc();
let a = Port::new_var(x.clone());
let a = Port::new_var(x);
let b = Port::new_var(x.other_half());
let c = Port::new_var(y.clone());
let c = Port::new_var(y);
let d = Port::new_var(y.other_half());
let e = Port::new_var(z.clone());
let e = Port::new_var(z);
let f = Port::new_var(z.other_half());
net.link_port_port(a.clone(), b.clone());
net.link_port_port(c.clone(), d.clone());
Expand Down Expand Up @@ -66,7 +66,7 @@ fn fuzz_pri_link_link_pri() {
let heap = Heap::new_exact(16).unwrap();
let mut net = Net::new(&heap);
let x = net.alloc();
let a = Port::new_var(x.clone());
let a = Port::new_var(x);
let b = Port::new_var(x.other_half());
net.link_port_port(a.clone(), b.clone());
let mut nets = net.fork(2);
Expand Down Expand Up @@ -98,9 +98,9 @@ fn fuzz_var_link_link_pri() {
let mut net = Net::new(&heap);
let x = net.alloc();
let y = net.alloc();
let a = Port::new_var(x.clone());
let a = Port::new_var(x);
let b = Port::new_var(x.other_half());
let c = Port::new_var(y.clone());
let c = Port::new_var(y);
let d = Port::new_var(y.other_half());
net.link_port_port(a.clone(), b.clone());
net.link_port_port(c.clone(), d.clone());
Expand Down Expand Up @@ -141,13 +141,13 @@ fn fuzz_var_link_link_link_var() {
let y = net.alloc();
let z = net.alloc();
let w = net.alloc();
let a = Port::new_var(x.clone());
let a = Port::new_var(x);
let b = Port::new_var(x.other_half());
let c = Port::new_var(y.clone());
let c = Port::new_var(y);
let d = Port::new_var(y.other_half());
let e = Port::new_var(z.clone());
let e = Port::new_var(z);
let f = Port::new_var(z.other_half());
let g = Port::new_var(w.clone());
let g = Port::new_var(w);
let h = Port::new_var(w.other_half());
net.link_port_port(a.clone(), b.clone());
net.link_port_port(c.clone(), d.clone());
Expand Down

0 comments on commit 131894d

Please sign in to comment.