Skip to content

Instantly share code, notes, and snippets.

@sassman
Created September 8, 2019 22:27
Show Gist options
  • Save sassman/40237e25281dcd46d0aadffaabc10df8 to your computer and use it in GitHub Desktop.
Save sassman/40237e25281dcd46d0aadffaabc10df8 to your computer and use it in GitHub Desktop.
rust tdd: test/alphabet_position_test.rs
// test/alphabet_position_test.rs
#[test]
fn it_should_replace_the_capital_a_with_1() {
let replaced = alphabet_position("A");
assert_eq!(replaced, "1");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment