diff --git a/src/runtime/tests/api_component.rs b/src/runtime/tests/api_component.rs index 67271d2986bb610f91a18425edff20de76b0b0f2..f4a9d851bff955e1a025343399ae0a8483670adb 100644 --- a/src/runtime/tests/api_component.rs +++ b/src/runtime/tests/api_component.rs @@ -8,7 +8,7 @@ use super::*; #[test] fn test_put_and_get() { const CODE: &'static str = " - primitive handler(in request, out response, u32 loops) { + comp handler(in request, out response, u32 loops) { u32 index = 0; while (index < loops) { sync { @@ -52,7 +52,7 @@ fn test_put_and_get() { #[test] fn test_getting_from_component() { const CODE: &'static str =" - primitive loop_sender(out numbers, u32 cur, u32 last) { + comp loop_sender(out numbers, u32 cur, u32 last) { while (cur < last) { sync { put(numbers, cur); @@ -91,7 +91,7 @@ fn test_getting_from_component() { #[test] fn test_putting_to_component() { const CODE: &'static str = " - primitive loop_receiver(in numbers, u32 cur, u32 last) { + comp loop_receiver(in numbers, u32 cur, u32 last) { while (cur < last) { sync { auto number = get(numbers); @@ -126,7 +126,7 @@ fn test_putting_to_component() { #[test] fn test_doing_nothing() { const CODE: &'static str = " - primitive getter(in input, u32 num_loops) { + comp getter(in input, u32 num_loops) { u32 index = 0; while (index < num_loops) { sync {}