Created
March 26, 2019 09:14
-
-
Save jasongorman/bf5e61257c2bf0bc82d678f5c4e87871 to your computer and use it in GitHub Desktop.
This file contains 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
void test_area(float base_dimension, Room *room){ | |
assert(room->area(room) >= (base_dimension)); | |
} | |
int main() { | |
test_area(2.5, new_rectangular_room(2.5, 2.5)); | |
test_area(2.5, new_circular_room(2.5)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment