error in TestSuite(PartitionTuples).run()

23 views
Skip to first unread message

Peter Samuelson

unread,
Jun 16, 2014, 9:58:56 PM6/16/14
to sage-s...@googlegroups.com
I'd like to use PartitionTuples, but I ran into problems (e.g. I couldn't create a PartitionTuple). I then ran the code

TestSuite( PartitionTuples() ).run()

and it produced quite a lot of errors. The last 4 lines were

The following tests failed: _test_elements_eq_reflexive, _test_elements_eq_symmetric, _test_elements_eq_transitive, _test_elements_neq, _test_enumerated_set_contains, _test_some_elements


Also, most of the example code in the help page for 'PartitionTuples' produces errors. (The page is http://www.sagemath.org/doc/reference/combinat/sage/combinat/partition_tuple.html#sage.combinat.partition_tuple.PartitionTuples ) The version I am using is

'Sage Version 6.2, Release Date: 2014-05-06'

Is this a bug? Or maybe I need to install something else?


Andrew

unread,
Jun 17, 2014, 6:56:06 AM6/17/14
to sage-s...@googlegroups.com
Hi Peter,

I think that something must be wrong with your istribution as this works for me:
┌────────────────────────────────────────────────────────────────────┐
Sage Version 6.2, Release Date: 2014-05-06                        
Type "notebook()" for the browser-based notebook interface.        
Type "help()" for help.                                            
└────────────────────────────────────────────────────────────────────┘
sage
: TestSuite( PartitionTuples() ).run()
sage
: PartitionTuple([[2,1],[],[1,1,1,1],[3,3,3,2]])
([2, 1], [], [1, 1, 1, 1], [3, 3, 3, 2])


Just for completeness I also ran all of the doc-tests in `partition_tuple.py` and they worked:

6.2-master-combinat: sage -t partition_tuple.py
Running doctests with ID 2014-06-17-12-53-19-84d39e8a.
Doctesting 1 file.
sage
-t partition_tuple.py
   
[273 tests, 6.23 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: 6.4 seconds
    cpu time
: 6.2 seconds
    cumulative wall time
: 6.2 seconds

Do you have a vanilla version of `sage` or has something been modified? If you are using `git` are you in the master branch or another one?

Andrew

Peter Samuelson

unread,
Jun 17, 2014, 11:18:42 AM6/17/14
to sage-s...@googlegroups.com
(This is intended as a reply to Andrew's answer.)

Based on your answer I realized I must not have set everything up quite right. I installed a fortran library, updated my PATH, and rebooted, and now everything seems to work. Thanks for the help, and sorry for the stupid question...
Reply all
Reply to author
Forward
0 new messages