sapling/eden/scm/tests/test-autofix.t
Jun Wu 75a8173a10 tests: enable chg for 572 tests
Summary:
Add `#chg-compatible` to 572 tests that seem to pass with chg enabled.
This should make them run faster.

Reviewed By: xavierd

Differential Revision: D18870507

fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
2019-12-09 15:26:29 -08:00

30 lines
619 B
Raku

#chg-compatible
#require parso
$ cat > a.py << EOF
> from testutil.autofix import eq
> from testutil.dott import sh
> eq(1 + 2, 0)
> eq(list(range(3)), None)
> eq("\n".join(map(str,range(3))), None)
> sh % "printf foo"
> sh % "printf bar" == "baz"
> EOF
$ hg debugpython -- a.py 2>&1 | tail -1
a.py:3: 3 != 0
$ hg debugpython -- a.py --fix
$ cat a.py
from testutil.autofix import eq
from testutil.dott import sh
eq(1 + 2, 3)
eq(list(range(3)), [0, 1, 2])
eq("\n".join(map(str,range(3))), r"""
0
1
2""")
sh % "printf foo" == 'foo'
sh % "printf bar" == 'bar'