Skip to content

Commit

Permalink
Add talent test
Browse files Browse the repository at this point in the history
  • Loading branch information
bownie committed Mar 17, 2023
1 parent 29759fb commit 9bb8bee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/employee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,12 @@ mod test {
assert_eq!(employee.id(), 5);
}

#[test]
fn employee_talent_test() {
let mut employee = Employee::new(EmployeeType::Developer, 5, "Developer 2".to_string(), 23, 35, 89, 77);
employee.add_talent(10);
assert_eq!(employee.talent(), 87);
}


}

0 comments on commit 9bb8bee

Please sign in to comment.