Skip to content

Commit

Permalink
Merge branch 'main' into make-all-unique
Browse files Browse the repository at this point in the history
  • Loading branch information
nicelgueta authored Aug 14, 2024
2 parents 559af7c + 510df60 commit a813672
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ mod python {
#[new]
fn new(word_length: i32) -> PyResult<Self> {
if word_length < 1 || word_length > 5 {
Err(PyValueError::new_err("word_length must be between 1 and 5"))
Err(PyValueError::new_err(
"word_length must be between 1 and 5"
))
} else {
let mut rng = rand::thread_rng();
let mut adjs = get_words(ADJ_FILE);
Expand Down Expand Up @@ -583,7 +585,7 @@ mod tests {
Err(_e) => assert!(true),
}
}

#[test]
fn happy_2_all_unique_half() {
let combos = combinations(2).unwrap() / 2;
Expand Down

0 comments on commit a813672

Please sign in to comment.