Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Atharva-Gupta committed Nov 29, 2023
2 parents 094a336 + 5af345e commit ee7d8f8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/games/crossteaser/variants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub fn parse_variant(variant: Variant) -> Result<Session, NovaError> {
}

/* VARIANT STRING VERIFICATION */

fn check_variant_pattern(variant: &Variant) -> Result<(), NovaError> {
let re = Regex::new(VARIANT_PATTERN).unwrap();
if !re.is_match(&variant) {
Expand Down Expand Up @@ -138,16 +139,6 @@ mod test {
assert!(with_default.is_ok());
}

// #[test]
// fn no_variant_equals_default_variant() {
// let with_none = Session::initialize(None).unwrap();
// let with_default =
// Session::initialize(Some(VARIANT_DEFAULT.to_owned())).unwrap();
//
// // Check these two things generated identical `Session`s.
// todo!()
// }

#[test]
fn invalid_variants_fail_checks() {
let some_variant_1 = Session::initialize(Some("None".to_owned()));
Expand Down

0 comments on commit ee7d8f8

Please sign in to comment.