Last active
April 13, 2018 02:30
-
-
Save starfys/8f9b9b97f86dd8aeee3f30abb6f185f3 to your computer and use it in GitHub Desktop.
Revisions
-
starfys revised this gist
Apr 13, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ /// Determines whether something is a robot fn is_robot(entity: Entity) -> bool { // TODO: Write this for real unimplemented!() } #[test] -
starfys revised this gist
Apr 13, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ fn is_robot(entity: Entity) -> bool { #[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); } -
starfys created this gist
Apr 13, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ fn is_robot(entity: Entity) -> bool { // TODO: Write this for real } #[test] fn test_robot_detector() { assert_eq!(is_robot(Entity::SamRemedios), false); assert_eq!(is_robot(Entity::Cat), false); assert_eq!(is_robot(Entity::Roomba), true); assert_eq!(is_robot(Entity::Zuckerburg), true); }