old_contents: '''Run self-test on all modules
  
  Run this as a module and it will perform the self-test.
  '''
  
  # For Python2 compatibility
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  
  
  if __name__ == '__main__':
  
      import doctest
  
      import linhomy
      import linhomy.classtools
      import linhomy.data
      import linhomy.fibonacci
      import linhomy.matrices
      import linhomy.matrices2
      import linhomy.product
      import linhomy.rank
      import linhomy.rankmatrices
      import linhomy.rules
      import linhomy.tools
      import linhomy.work
  
      modules = [
          linhomy,
          linhomy.classtools,
          linhomy.data,
          linhomy.fibonacci,
          linhomy.matrices,
          linhomy.matrices2,
          linhomy.product,
          linhomy.rankmatrices,
          linhomy.rules,
          linhomy.tools,
          linhomy.work,
      ]
  
      # TODO: Pick up 'verbose' from the command line?
      for mod in modules:
  
          prefix = mod.__name__.ljust(20)
          print(prefix, doctest.testmod(mod))
  
new_contents: '''Run self-test on all modules
  
  Run this as a module and it will perform the self-test.
  '''
  
  # For Python2 compatibility
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  
  
  if __name__ == '__main__':
  
      import doctest
  
      import linhomy
      import linhomy.candidate
      import linhomy.cdr_matrices
      import linhomy.classtools
      import linhomy.data
      import linhomy.fibonacci
      import linhomy.matrices
      import linhomy.matrices2
      import linhomy.product
      import linhomy.rank
      import linhomy.rankmatrices
      import linhomy.rules
      import linhomy.tools
      import linhomy.work
  
      modules = [
          linhomy,
          linhomy.candidate,
          linhomy.cdr_matrices,
          linhomy.classtools,
          linhomy.data,
          linhomy.fibonacci,
          linhomy.matrices,
          linhomy.matrices2,
          linhomy.product,
          linhomy.rankmatrices,
          linhomy.rules,
          linhomy.tools,
          linhomy.work,
      ]
  
      # TODO: Pick up 'verbose' from the command line?
      for mod in modules:
  
          prefix = mod.__name__.ljust(20)
          print(prefix, doctest.testmod(mod))
  
subject: Add linhomy.candidate and linhomy.cdr_matrices to linhomy.selftest.