assert_eq!(2+2, 4);
}".to_string();
let output = make_test(input, None, false, &opts);
- assert_eq!(output, (expected.clone(), 2));
+ assert_eq!(output, (expected, 2));
}
#[test]
assert_eq!(2+2, 4);
}".to_string();
let output = make_test(input, None, false, &opts);
- assert_eq!(output, (expected.clone(), 2));
+ assert_eq!(output, (expected, 2));
}
#[test]
//Ceci n'est pas une `fn main`
assert_eq!(2+2, 4);".to_string();
let output = make_test(input, None, true, &opts);
- assert_eq!(output, (expected.clone(), 1));
+ assert_eq!(output, (expected, 1));
}
#[test]
assert_eq!(2+2, 4);
}".to_string();
let output = make_test(input, None, false, &opts);
- assert_eq!(output, (expected.clone(), 1));
+ assert_eq!(output, (expected, 1));
}
}