t/sanity.t .............................................. ok t/pmc/pmcmatrix2d.t ..................................... ok t/pmc/nummatrix2d.t ..................................... ok t/pmc/complexmatrix2d.t ................................. ok t/methods/nummatrix2d/convert_to_complex_matrix.t ....... ok t/methods/nummatrix2d/row_scale.t ....................... ok t/methods/nummatrix2d/get_block.t ....................... ok t/methods/nummatrix2d/mem_transpose.t ................... ok t/methods/nummatrix2d/convert_to_number_matrix.t ........ ok t/methods/nummatrix2d/initialize_from_args.t ............ ok t/methods/nummatrix2d/row_swap.t ........................ ok t/methods/nummatrix2d/iterate_function_inplace.t ........ ok t/methods/nummatrix2d/fill.t ............................ ok t/methods/nummatrix2d/initialize_from_array.t ........... ok t/methods/nummatrix2d/iterate_function_external.t ....... ok t/methods/nummatrix2d/transpose.t ....................... ok t/methods/nummatrix2d/item_at.t ......................... ok t/methods/nummatrix2d/gemm.t ............................ ok t/methods/nummatrix2d/row_combine.t ..................... ok t/methods/nummatrix2d/resize.t .......................... ok t/methods/nummatrix2d/convert_to_pmc_matrix.t ........... ok t/methods/nummatrix2d/set_block.t ....................... ok t/methods/complexmatrix2d/convert_to_complex_matrix.t ... ok t/methods/complexmatrix2d/row_scale.t ................... ok t/methods/complexmatrix2d/get_block.t ................... ok t/methods/complexmatrix2d/mem_transpose.t ............... ok t/methods/complexmatrix2d/convert_to_number_matrix.t .... ok t/methods/complexmatrix2d/initialize_from_args.t ........ ok t/methods/complexmatrix2d/row_swap.t .................... ok t/methods/complexmatrix2d/iterate_function_inplace.t .... ok t/methods/complexmatrix2d/fill.t ........................ ok t/methods/complexmatrix2d/initialize_from_array.t ....... ok t/methods/complexmatrix2d/conjugate.t ................... ok t/methods/complexmatrix2d/iterate_function_external.t ... ok t/methods/complexmatrix2d/transpose.t ................... ok t/methods/complexmatrix2d/item_at.t ..................... ok t/methods/complexmatrix2d/gemm.t ........................ ok t/methods/complexmatrix2d/row_combine.t ................. ok t/methods/complexmatrix2d/resize.t ...................... ok t/methods/complexmatrix2d/convert_to_pmc_matrix.t ....... ok t/methods/complexmatrix2d/set_block.t ................... ok t/methods/pmcmatrix2d/convert_to_complex_matrix.t ....... ok t/methods/pmcmatrix2d/get_block.t ....................... ok t/methods/pmcmatrix2d/mem_transpose.t ................... ok t/methods/pmcmatrix2d/convert_to_number_matrix.t ........ ok t/methods/pmcmatrix2d/initialize_from_args.t ............ ok t/methods/pmcmatrix2d/iterate_function_inplace.t ........ ok t/methods/pmcmatrix2d/fill.t ............................ ok t/methods/pmcmatrix2d/initialize_from_array.t ........... ok t/methods/pmcmatrix2d/iterate_function_external.t ....... ok t/methods/pmcmatrix2d/transpose.t ....................... ok t/methods/pmcmatrix2d/item_at.t ......................... ok t/methods/pmcmatrix2d/resize.t .......................... ok t/methods/pmcmatrix2d/convert_to_pmc_matrix.t ........... ok t/methods/pmcmatrix2d/set_block.t ....................... ok PASSED 356 tests in 55 files
I factored out all tests to delegate matrix creation and matrix population routines into a series of type-specific factory objects. With these factories, creation of tests goes extremely quickly:
- Write tests using a few methods and values from the factory instead
- Create a short stub test for each Matrix type, subclassing the common tests and add a proper factory
- There is no step 3.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.