diff --git a/src/runtime/tests/data_transmission.rs b/src/runtime/tests/data_transmission.rs index d86dee7f3c8ff915d9a56d49c9281cc5ca30f768..505ee96500575b6100fe24621335602514ac00fc 100644 --- a/src/runtime/tests/data_transmission.rs +++ b/src/runtime/tests/data_transmission.rs @@ -9,7 +9,7 @@ fn test_doing_nothing() { // If this thing does not get into an infinite loop, (hence: the runtime // exits), then the test works const CODE: &'static str =" - primitive silent_willy(u32 loops) { + comp silent_willy(u32 loops) { u32 index = 0; while (index < loops) { sync { index += 1; } @@ -28,7 +28,7 @@ fn test_doing_nothing() { #[test] fn test_single_put_and_get() { const CODE: &'static str = " - primitive putter(out sender, u32 loops) { + comp putter(out sender, u32 loops) { u32 index = 0; while (index < loops) { sync { @@ -38,7 +38,7 @@ fn test_single_put_and_get() { } } - primitive getter(in receiver, u32 loops) { + comp getter(in receiver, u32 loops) { u32 index = 0; while (index < loops) { sync { @@ -69,7 +69,7 @@ fn test_single_put_and_get() { #[test] fn test_combined_put_and_get() { const CODE: &'static str = " - primitive put_then_get(out output, in input, u32 num_loops) { + comp put_then_get(out output, in input, u32 num_loops) { u32 index = 0; while (index < num_loops) { sync { @@ -81,7 +81,7 @@ fn test_combined_put_and_get() { } } - composite constructor(u32 num_loops) { + comp constructor(u32 num_loops) { channel output_a -> input_a; channel output_b -> input_b; new put_then_get(output_a, input_b, num_loops); @@ -99,7 +99,7 @@ fn test_combined_put_and_get() { #[test] fn test_multi_put_and_get() { const CODE: &'static str = " - primitive putter_static(out vals, u32 num_loops) { + comp putter_static(out vals, u32 num_loops) { u32 index = 0; while (index < num_loops) { sync { @@ -112,7 +112,7 @@ fn test_multi_put_and_get() { } } - primitive getter_dynamic(in vals, u32 num_loops) { + comp getter_dynamic(in vals, u32 num_loops) { u32 loop_index = 0; while (loop_index < num_loops) { sync {