unignore swap test

This commit is contained in:
Protryon 2021-02-04 07:36:41 -08:00
parent 9c6eb23a1e
commit 5d4fbdbbe2
2 changed files with 1 additions and 2 deletions

View File

@ -149,7 +149,6 @@ fn test_function_input_mut() {
}
#[test]
#[ignore]
fn test_swap() {
let program_string = include_str!("swap.leo");
let program = parse_program(program_string).unwrap();

View File

@ -1,5 +1,5 @@
// Swap two elements of an array.
function swap(mut a: [u32; 2], i: u32, j: u32) -> [u32; 2] {
function swap(mut a: [u32; 2], const i: u32, const j: u32) -> [u32; 2] {
let t = a[i];
a[i] = a[j];
a[j] = t;