diff --git a/compiler/tests/mutability/mod.rs b/compiler/tests/mutability/mod.rs index 8acd3f9e51..6c1555c870 100644 --- a/compiler/tests/mutability/mod.rs +++ b/compiler/tests/mutability/mod.rs @@ -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(); diff --git a/compiler/tests/mutability/swap.leo b/compiler/tests/mutability/swap.leo index 8234a3cfb7..0a209149ee 100644 --- a/compiler/tests/mutability/swap.leo +++ b/compiler/tests/mutability/swap.leo @@ -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;