You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe, the tests above will be better if there are hint lines as below.
// Reversing a Vec is pretty easy in Rust #[test]fnreverse_vecs(){letmut vector = vec![1,2,3];
__;assert_eq!(vector.first(),Some(&3));}// You can also just swap two elements in a Vec #[test]fntrading_spaces(){letmut vector = vec![false,true];
__;assert_eq!(vector.first(),Some(&true));}
The text was updated successfully, but these errors were encountered:
rust-koans/src/koans/vec.rs
Lines 160 to 172 in c6e8193
Maybe, the tests above will be better if there are hint lines as below.
The text was updated successfully, but these errors were encountered: