Skip to content

Commit a9ea6b0

Browse files
committed
re-enable normal parameters
1 parent 6cbbad6 commit a9ea6b0

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

tests/runtime/fixed-size-list/runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ include!(env!("BINDINGS"));
33
use test::fixed_size_lists::to_test::*;
44

55
fn main() {
6-
// list_param([1, 2, 3, 4]);
7-
// list_param2([[1, 2], [3, 4]]);
6+
list_param([1, 2, 3, 4]);
7+
list_param2([[1, 2], [3, 4]]);
88
{
99
let result = list_result();
1010
assert_eq!(result, [b'0', b'1', b'A', b'B', b'a', b'b', 128, 255]);

tests/runtime/fixed-size-list/test.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ struct Component;
55
export!(Component);
66

77
impl exports::test::fixed_size_lists::to_test::Guest for Component {
8-
// fn list_param(a: [u32; 4]) {
9-
// assert_eq!(a, [1, 2, 3, 4]);
10-
// }
11-
// fn list_param2(a: [[u32; 2]; 2]) {
12-
// assert_eq!(a, [[1, 2], [3, 4]]);
13-
// }
8+
fn list_param(a: [u32; 4]) {
9+
assert_eq!(a, [1, 2, 3, 4]);
10+
}
11+
fn list_param2(a: [[u32; 2]; 2]) {
12+
assert_eq!(a, [[1, 2], [3, 4]]);
13+
}
1414
// fn list_param3(_a: [i32; 20]) {}
1515
fn list_result() -> [u8; 8] {
1616
[b'0', b'1', b'A', b'B', b'a', b'b', 128, 255]

tests/runtime/fixed-size-list/test.wit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package test:fixed-size-lists;
44

55
interface to-test {
6-
// list-param: func(a: list<u32, 4>);
7-
// list-param2: func(a: list<list<u32, 2>, 2>);
6+
list-param: func(a: list<u32, 4>);
7+
list-param2: func(a: list<list<u32, 2>, 2>);
88
// list-param3: func(a: list<s32, 20>);s
99
list-result: func() -> list<u8, 8>;
1010

0 commit comments

Comments
 (0)