Wattsy2020 / 314-Project

Group work assignment for CSIT314
0 stars 0 forks source link

Implement testing ideas #2

Open Wattsy2020 opened 4 years ago

Wattsy2020 commented 4 years ago

Using a list of test cases created in #1 implement the test cases in python using the numpy package. Essentially this entails creating a function that:

  1. Randomly generates test data e.g. if the test idea was to use the fact sin(x) = sin(pi - x) randomly generate an x
  2. Executing the operations in numpy e.g. look at the docs here https://numpy.org/doc/stable/index.html and find that the numpy function for sin is numpy.sin(x)
  3. Assert the results are correct e.g. using the assert_equals(x, y, delta) function