Skip to content

Instantly share code, notes, and snippets.

@starfys
Last active April 13, 2018 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starfys/8f9b9b97f86dd8aeee3f30abb6f185f3 to your computer and use it in GitHub Desktop.
Save starfys/8f9b9b97f86dd8aeee3f30abb6f185f3 to your computer and use it in GitHub Desktop.
/// 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