Module 4 – Validate graphics data and review an application
Probe both boundaries and the missing checks
Prepare cases (3,3), (0,3), (3,0), (-1,3), and (3,-1). Predict which are accepted before changing the program. For an invalid descriptor, the current message is Mesh counts must be positive. Test each field independently so a failure can be traced to the intended condition.
Positive counts alone do not establish that indices refer to existing vertices or that an actual mesh is valid. The current descriptor contains no index array to inspect. Likewise, a declared TextureDescriptor type is not a texture-upload API. Write claims at the level your code and tests support, and note which additional public contracts would be needed for a real renderer.
Complete this lesson
Answer every check correctly to earn your lesson certificate. Feedback helps you review and try again.
Sign in · Save your progress and earn a certificate for this lesson.