Opened 8 months ago

Last modified 8 months ago

#30287 closed enhancement

sage.tensor.modules.free_module_basis: Add testsuite — at Version 6

Reported by: mkoeppe Owned by:
Priority: minor Milestone: sage-9.2
Component: linear algebra Keywords:
Cc: gh-mjungmath, egourgoulhon, tscrim Merged in:
Authors: Matthias Koeppe Reviewers:
Report Upstream: N/A Work issues:
Branch: u/mkoeppe/sage_tensor_modules_free_module_basis__add_testsuite (Commits, GitHub, GitLab) Commit: f1f67d3ddf2639d20ea4d8cd7bac4bd59e90a155
Dependencies: Stopgaps:

Status badges

Description (last modified by mkoeppe)

We add a _test... method to Basis_abstract and run the test suite for some instances of FreeModuleBasis, FreeModuleCoBasis.

Change History (6)

comment:1 Changed 8 months ago by mkoeppe

  • Branch set to u/mkoeppe/sage_tensor_modules_free_module_basis__add_testsuite

comment:2 Changed 8 months ago by mkoeppe

  • Commit set to 1e69c0eba014ac4d5a1e5ecd664f1bf953242507

The tests currently fail:

File "src/sage/tensor/modules/", line 388, in sage.tensor.modules.free_module_basis.FreeModuleCoBasis
Failed example:
    IndexError: index out of range: 0 not in [1, 3]
    The following tests failed: _test_iter_len

File "src/sage/tensor/modules/", line 400, in sage.tensor.modules.free_module_basis.FreeModuleCoBasis.?
Failed example:
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/local/lib/python3.7/site-packages/sage/tensor/modules/", line 98, in _test_iter_len
        tester.assertTrue(x in self.free_module())
      File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/", line 705, in assertTrue
        raise self.failureException(msg)
    AssertionError: False is not true
    The following tests failed: _test_iter_len

New commits:

1e69c0esage.tensor.modules.free_module_basis.Basis_abstract: Add _test_iter_len

comment:3 Changed 8 months ago by mkoeppe

Should the method FreeModuleCoBasis.free_module really return the (primal) base module, as it currently does? Or rather the dual of it?

comment:4 Changed 8 months ago by mkoeppe

  • Status changed from new to needs_info

comment:5 Changed 8 months ago by git

  • Commit changed from 1e69c0eba014ac4d5a1e5ecd664f1bf953242507 to f1f67d3ddf2639d20ea4d8cd7bac4bd59e90a155

Branch pushed to git repo; I updated commit sha1. New commits:

f1f67d3FreeModuleCoBasis: Add _test_iter_len

comment:6 Changed 8 months ago by mkoeppe

  • Description modified (diff)
  • Priority changed from major to minor
  • Status changed from needs_info to needs_review
  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.