Re: [sage-devel] Re: frozensets in doctests / for display in Python3

2019-04-16 Thread Daniel Krenn
On 16.04.19 17:26, Nils Bruin wrote: > Do you want to test that you get *that* string representation back? > Or do you want to check that you are getting string representations of > that shape, but with possibly differently order frozensets? > Or do you want to check that you get a list back with

Re: [sage-devel] Re: frozensets in doctests / for display in Python3

2019-04-16 Thread Nils Bruin
On Tuesday, April 16, 2019 at 8:16:29 AM UTC-7, Daniel Krenn wrote: > > On 16.04.19 16:56, John H Palmieri wrote: > > Is the printed order important? If not, you can change the doctest to > > something else that is actually testing something relevant [...] > > Changing the doctest really an

Re: [sage-devel] Re: frozensets in doctests / for display in Python3

2019-04-16 Thread Daniel Krenn
On 16.04.19 16:56, John H Palmieri wrote: > Is the printed order important? If not, you can change the doctest to > something else that is actually testing something relevant [...] Changing the doctest really an option here, as we want to see the transistions of the automaton which are display

[sage-devel] Re: frozensets in doctests / for display in Python3

2019-04-16 Thread John H Palmieri
Is the printed order important? If not, you can change the doctest to something else that is actually testing something relevant, maybe like sage: 'B' in frozenset() True or sage: (define the frozenset S somehow) sage: S == frozenset(['A', 'B', 'C']) True Or if