Tests: the TABLE.createCaption() method
Conditions:
If no caption exists, the method should create an empty caption, add it to the table, and return a pointer to it.
If a caption does exist, the method should return a pointer to it.
If successful, the first table should have the caption Fruity, and the second table should have the caption Vegetabley. Upon failure, the first table will have no caption, and the second table will have the caption Things.
Fruit | Color |
---|---|
Banana | Yellow |
Grape | Purple |
Vegetable | Color |
---|---|
Carrot | Orange |
Cucumber | Green |