Coding Challenge: Writing a Parameterized Test

Let's write a parametrized test for a function.

Problem statement

  • Write a parameterized test for the squared function, given below. Your task is to verify that the function returns the squares of the input values, 1, 5, 10, and 100.

Complete the code

Get hands-on with 1400+ tech skills courses.