We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4b3e7 commit 1fdca20Copy full SHA for 1fdca20
exercises/protein-translation/tests/proteins.rs
@@ -108,6 +108,20 @@ fn test_invalid_codons() {
108
assert!(info.of_rna("CARROT").is_none());
109
}
110
111
+#[test]
112
+#[ignore]
113
+fn test_invalid_length() {
114
+ let info = proteins::parse(make_pairs());
115
+ assert!(info.of_rna("AUGUA").is_none());
116
+}
117
+
118
119
120
+fn test_valid_stopped_rna() {
121
122
+ assert_eq!(info.of_rna("AUGUAAASDF"), Some(vec!["methionine"]));
123
124
125
// The input data constructor. Returns a list of codon, name pairs.
126
fn make_pairs() -> Vec<(&'static str, &'static str)> {
127
let grouped = vec![
0 commit comments