Last active
April 13, 2018 02:30
-
-
Save starfys/8f9b9b97f86dd8aeee3f30abb6f185f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Determines whether something is a robot | |
fn is_robot(entity: Entity) -> bool { | |
// TODO: Write this for real | |
unimplemented!() | |
} | |
#[test] | |
fn test_robot_detector() { | |
assert_eq!(is_robot(Entity::SamRemedios), false); | |
assert_eq!(is_robot(Entity::Roomba), true); | |
assert_eq!(is_robot(Entity::Hamburger), false); | |
assert_eq!(is_robot(Entity::Zuckerburg), true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment