mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 07:48:04 +03:00
unignore swap test
This commit is contained in:
parent
9c6eb23a1e
commit
5d4fbdbbe2
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user