GSoC/GCI Archive
Google Code-in 2010 Parrot Foundation and The Perl Foundation

Increase Test Coverage for NumMatrix2D

completed by: Fernando Brito

mentors: whiteknight

Task description: Consists of:

  • Tests are an important part of verifying the behavior of software. The Parrot-Linear-Algebra (PLA) project has several tests to exercise it's core PMC types, but needs more to cover additional input cases, especially error conditions.
  • Tests are needed for basic arithmetic operations (addition and multiplication) and several methods calls (gemm, row operations, etc).
  • Tests should cover cases where input matrices have incorrect sizes, where the wrong types of PMCs are passed to operations and methods, and where invalid values are used
  • The user is expected to write approximately 15 new tests for the NumMatrix2D type to cover conditions that are not already tested

Benefits: PLA will benefit strongly from additional test coverage. Tests help to prove that the software works correctly, and prevent breakages when things are changed in the future. More tests help inform users about possible consequences to their own software when using PLA under certain conditions.

Requirements: Knowledge of programming (no specific languages), Linear algebra, access to a Linux system