Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Oct 27, 2023
1 parent 13e1704 commit 22766a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/tests/compiler/array/array_access.leo
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ expectation: Pass

program test.aleo {
transition foo(a: [bool; 8]) -> bool {
return a[0];
return a[0u32];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ program test.aleo {
}

transition foo(a: [[bool; 8]; 8]) -> bool {
return a[0][0];
return a[0u32][0u32];
}
}
2 changes: 1 addition & 1 deletion tests/tests/compiler/array/array_of_records.leo
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ program test.aleo {
}

transition foo(a: [bar; 8]) -> u8 {
return a[0].data;
return a[0u32].data;
}
}
2 changes: 1 addition & 1 deletion tests/tests/compiler/array/array_of_structs.leo
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ program test.aleo {
}

transition foo(a: [bar; 8]) -> u8 {
return a[0].data;
return a[0u8].data;
}
}

0 comments on commit 22766a4

Please sign in to comment.