A snippet from Orange illustrates TOG's power

2020-01-17 Thread Edward K. Ream
The Orange class is based on tokens. This token-based approach work perfectly, except for the placement of spaces of around colons in slices. Here are some examples, as recommend by pep 8 and as rendered by black, and now Leo's Orange class: a[1::] a

The Orange class passes all unit tests

2020-01-17 Thread Edward K. Ream
The latest round of work on leoAst.py is complete. This also is a big step towards completing #1440 , unify the ast and token worlds. Today's work also completes #1474 : Better coverage

Re: pytest coverage testing is a wow

2020-01-17 Thread Edward K. Ream
On Thu, Jan 16, 2020 at 9:56 PM Brian Theado wrote: > ...the @pytest.mark.xfail decorator ( https://docs.pytest.org/en/latest/skipping.html#xfail-mark-test-functions-as-expected-to-fail) is useful for "a bug not yet fixed" which sounds like what you are describin g Thanks for this. It would have