Name | Description |
---|---|
shape | Tests that apply to any shape. A shape is a polygon OR a circle |
circle | Tests that only apply to a circle |
Name | Description |
---|---|
polygon | Tests that only apply to polygons |
rectangle | Tests that apply only to rectangles, a subset of polygons |
shape | Tests that apply to any shape. A shape is a polygon OR a circle |
Name | Description |
---|---|
polygon | Tests that only apply to polygons |
shape | Tests that apply to any shape. A shape is a polygon OR a circle |
Name | Description |
---|---|
vertex_count | A polygon should accurately count the number of verticies it contains |
edge_count | A polygon should accurately count the number of edges it contains |
Name | Description |
---|---|
is_square | A rectangle should be able to accurately determine if it is a square |
Name | Description |
---|---|
area | A shape should be able to accurately calculate its area |
perimeter | A shape should be able to accurately calculate its perimeter (or circumference) |
Name | Description |
---|---|
radius | A circle should be able to accurately calculate its radius |
diameter | A circle should be able to accurately calculate its diameter |
non_numeric | Using a non-numeric radius should throw an error |
A polygon should accurately count the number of verticies it contains
A polygon should accurately count the number of edges it contains
A rectangle should be able to accurately determine if it is a square
A shape should be able to accurately calculate its area
A shape should be able to accurately calculate its perimeter (or circumference)
A circle should be able to accurately calculate its radius
A circle should be able to accurately calculate its diameter
Using a non-numeric radius should throw an error