Files @ 935c576f54d0
Branch filter:

Location: CSY/reowolf/src/runtime2/tests/transfer_ports.rs

935c576f54d0 449 B application/rls-services+xml Show Annotation Show as Raw Download as Raw
MH
Fixing rerouting+port-transfer bug
use super::*;

#[test]
fn test_transfer_precreated_port_with_owned_peer() {
    compile_and_create_component("
    primitive port_sender(out<in<u32>> tx) {
        channel a -> b;
        sync put(tx, b);
    }

    primitive port_receiver(in<in<u32>> rx) {
        sync auto a = get(rx);
    }

    composite constructor() {
        channel a -> b;
        new port_sender(a);
        new port_receiver(b);
    }
    ", "constructor", no_args());
}