Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfast565 committed Mar 12, 2021
1 parent 31d7c70 commit 9a12002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ mod tests {
fn test_append_path() {
let path1 = "C:\\Users";
let path2 = "jfast\\Desktop";
let full_path = "C:\\Users\\jfast\\Desktop";
let pp1 = PathParser::new(&String::from(path1));
let pp2 = pp1.append_segment(&String::from(path2));
let result = pp2.get_segment().get_default_segment_string();
assert_eq!(result, "C:\\Users\\jfast\\Desktop");
let comparator = PathParser::new(&String::from(full_path)).get_segment().get_default_segment_string();
assert_eq!(result, comparator);
}
}

0 comments on commit 9a12002

Please sign in to comment.