mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Normalize new lines for python fixture files
This commit is contained in:
parent
7ad1643d9c
commit
7023a16147
1
test/fixtures/python/assert-statement.A.py
vendored
1
test/fixtures/python/assert-statement.A.py
vendored
@ -1,3 +1,2 @@
|
||||
assert a
|
||||
assert b, c
|
||||
|
||||
|
1
test/fixtures/python/assert-statement.B.py
vendored
1
test/fixtures/python/assert-statement.B.py
vendored
@ -1,3 +1,2 @@
|
||||
assert c, a
|
||||
assert b
|
||||
|
||||
|
1
test/fixtures/python/assignment.B.py
vendored
1
test/fixtures/python/assignment.B.py
vendored
@ -1,4 +1,3 @@
|
||||
a, b = 2, 1
|
||||
c = 1
|
||||
b, = 1, 2
|
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
async def a():
|
||||
b
|
||||
|
||||
async def b(h, i,):
|
||||
i
|
||||
|
||||
async def c(d):
|
||||
d
|
@ -6,4 +6,3 @@ async def a():
|
||||
|
||||
async def d(c):
|
||||
e
|
||||
|
||||
|
1
test/fixtures/python/attribute.A.py
vendored
1
test/fixtures/python/attribute.A.py
vendored
@ -1 +1,2 @@
|
||||
a.b
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
a >>= 2
|
||||
d //= 1
|
||||
b += 1
|
||||
|
||||
|
1
test/fixtures/python/class-definition.A.py
vendored
1
test/fixtures/python/class-definition.A.py
vendored
@ -8,4 +8,3 @@ class C():
|
||||
class B(method1):
|
||||
def method1(self):
|
||||
return
|
||||
|
||||
|
1
test/fixtures/python/class-definition.B.py
vendored
1
test/fixtures/python/class-definition.B.py
vendored
@ -5,4 +5,3 @@ class D(method1):
|
||||
class B:
|
||||
def b(self):
|
||||
return c
|
||||
|
||||
|
1
test/fixtures/python/comment.A.py
vendored
1
test/fixtures/python/comment.A.py
vendored
@ -1,3 +1,2 @@
|
||||
# first comment
|
||||
# second comment
|
||||
|
||||
|
10
test/fixtures/python/comparison-operator.A.py
vendored
10
test/fixtures/python/comparison-operator.A.py
vendored
@ -0,0 +1,10 @@
|
||||
a < b
|
||||
c <= d
|
||||
e != f
|
||||
g >= h
|
||||
i > j
|
||||
k <> l
|
||||
m in n
|
||||
o is p
|
||||
q not in r
|
||||
s is not t
|
@ -1,2 +1 @@
|
||||
"one" "two" "three"
|
||||
|
||||
|
@ -1,2 +1 @@
|
||||
"two" "one" "four" "three"
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
foo() if a
|
||||
b = c if d else e
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
e = d if f else g
|
||||
foo() if b
|
||||
|
||||
|
1
test/fixtures/python/continue-statement.B.py
vendored
1
test/fixtures/python/continue-statement.B.py
vendored
@ -1,3 +1,2 @@
|
||||
continue
|
||||
continue
|
||||
|
||||
|
@ -9,4 +9,3 @@ class C:
|
||||
@a(1, b=True, *b, **c)
|
||||
def f():
|
||||
g
|
||||
|
||||
|
@ -6,4 +6,3 @@ class D:
|
||||
@a(2, c=True, *a, **d)
|
||||
def f():
|
||||
g
|
||||
|
||||
|
1
test/fixtures/python/delete-statement.A.py
vendored
1
test/fixtures/python/delete-statement.A.py
vendored
@ -1,2 +1 @@
|
||||
del a[1], b[2]
|
||||
|
||||
|
1
test/fixtures/python/delete-statement.B.py
vendored
1
test/fixtures/python/delete-statement.B.py
vendored
@ -1,2 +1 @@
|
||||
del b[1], a[2]
|
||||
|
||||
|
@ -1,4 +1,2 @@
|
||||
{ c : d for b in a }
|
||||
{ d : g for e in f }
|
||||
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
{ f : g for e in d }
|
||||
{ c : 1 for b in a }
|
||||
|
||||
|
1
test/fixtures/python/exec-statement.A.py
vendored
1
test/fixtures/python/exec-statement.A.py
vendored
@ -1,4 +1,3 @@
|
||||
exec '1+1'
|
||||
exec 'x+=1' in None
|
||||
exec 'x+=1' in a, b
|
||||
|
||||
|
1
test/fixtures/python/exec-statement.B.py
vendored
1
test/fixtures/python/exec-statement.B.py
vendored
@ -1,4 +1,3 @@
|
||||
exec 'x+=1' in d
|
||||
exec 'x+=1' in b, c
|
||||
exec '2+1'
|
||||
|
||||
|
@ -2,4 +2,3 @@ a
|
||||
b + c
|
||||
1, 2, 3
|
||||
1, 2, 3,
|
||||
|
||||
|
@ -2,4 +2,3 @@
|
||||
b
|
||||
3, 1, 2,
|
||||
a + c
|
||||
|
||||
|
1
test/fixtures/python/float.A.py
vendored
1
test/fixtures/python/float.A.py
vendored
@ -8,4 +8,3 @@
|
||||
.3e1_4
|
||||
1_0.l
|
||||
.1l
|
||||
|
||||
|
1
test/fixtures/python/float.B.py
vendored
1
test/fixtures/python/float.B.py
vendored
@ -8,4 +8,3 @@
|
||||
.8e2_7
|
||||
2_1.l
|
||||
.2l
|
||||
|
||||
|
1
test/fixtures/python/for-statement.A.py
vendored
1
test/fixtures/python/for-statement.A.py
vendored
@ -7,4 +7,3 @@ else:
|
||||
|
||||
for x, in [(1,), (2,), (3,)]:
|
||||
x
|
||||
|
||||
|
1
test/fixtures/python/for-statement.B.py
vendored
1
test/fixtures/python/for-statement.B.py
vendored
@ -7,4 +7,3 @@ for line, j in lines:
|
||||
print character
|
||||
else:
|
||||
print y
|
||||
|
||||
|
@ -6,4 +6,3 @@ def c(d):
|
||||
|
||||
def g(g, h,):
|
||||
i
|
||||
|
||||
|
@ -6,4 +6,3 @@ def c():
|
||||
|
||||
def d(e):
|
||||
a
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
(c for b in a)
|
||||
(d for e in f)
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
(f for e in d)
|
||||
(c + 1 for b in a)
|
||||
|
||||
|
1
test/fixtures/python/global-statement.A.py
vendored
1
test/fixtures/python/global-statement.A.py
vendored
@ -1,3 +1,2 @@
|
||||
global a
|
||||
global a, b
|
||||
|
||||
|
1
test/fixtures/python/global-statement.B.py
vendored
1
test/fixtures/python/global-statement.B.py
vendored
@ -1,3 +1,2 @@
|
||||
global b, a
|
||||
global c
|
||||
|
||||
|
1
test/fixtures/python/if-statement.A.py
vendored
1
test/fixtures/python/if-statement.A.py
vendored
@ -1,4 +1,3 @@
|
||||
if a:
|
||||
b
|
||||
c
|
||||
|
||||
|
1
test/fixtures/python/if-statement.B.py
vendored
1
test/fixtures/python/if-statement.B.py
vendored
@ -1,4 +1,3 @@
|
||||
if c:
|
||||
a
|
||||
b
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
from a import b
|
||||
from a import (b, c)
|
||||
from a import *
|
@ -1,5 +1,3 @@
|
||||
from b import a
|
||||
from b import (c, a)
|
||||
from b import *
|
||||
|
||||
|
||||
|
1
test/fixtures/python/import-statement.B.py
vendored
1
test/fixtures/python/import-statement.B.py
vendored
@ -1,3 +1,2 @@
|
||||
import b, a
|
||||
import a.c as e
|
||||
|
||||
|
1
test/fixtures/python/integer.A.py
vendored
1
test/fixtures/python/integer.A.py
vendored
@ -11,4 +11,3 @@
|
||||
0B1_1
|
||||
0O1_1
|
||||
0L
|
||||
|
||||
|
1
test/fixtures/python/integer.B.py
vendored
1
test/fixtures/python/integer.B.py
vendored
@ -11,4 +11,3 @@
|
||||
0B1_1_1
|
||||
0O2_3
|
||||
1L
|
||||
|
||||
|
1
test/fixtures/python/list-comprehension.A.py
vendored
1
test/fixtures/python/list-comprehension.A.py
vendored
@ -1,3 +1,2 @@
|
||||
[ c for b in a ]
|
||||
[ d for e in f ]
|
||||
|
||||
|
1
test/fixtures/python/list-comprehension.B.py
vendored
1
test/fixtures/python/list-comprehension.B.py
vendored
@ -1,3 +1,2 @@
|
||||
[ f for e in d ]
|
||||
[ c + 1 for b in a ]
|
||||
|
||||
|
@ -1,2 +1 @@
|
||||
nonlocal a
|
||||
|
||||
|
@ -1,2 +1 @@
|
||||
nonlocal b
|
||||
|
||||
|
1
test/fixtures/python/pass-statement.A.py
vendored
1
test/fixtures/python/pass-statement.A.py
vendored
@ -1,2 +1 @@
|
||||
pass
|
||||
|
||||
|
1
test/fixtures/python/pass-statement.B.py
vendored
1
test/fixtures/python/pass-statement.B.py
vendored
@ -1,3 +1,2 @@
|
||||
pass
|
||||
pass
|
||||
|
||||
|
4
test/fixtures/python/print-statement.A.py
vendored
4
test/fixtures/python/print-statement.A.py
vendored
@ -0,0 +1,4 @@
|
||||
print a, b
|
||||
print c
|
||||
print 0 or 1
|
||||
print 0 or 1, 1 or 0,
|
9
test/fixtures/python/print-statement.B.py
vendored
9
test/fixtures/python/print-statement.B.py
vendored
@ -1,5 +1,4 @@
|
||||
print a, b
|
||||
print c
|
||||
print 1 or 0
|
||||
print 0 or 1, 1 or 0,
|
||||
|
||||
print c, a
|
||||
print b
|
||||
print 0 or 1
|
||||
print 1 or 0, 0 or 1,
|
||||
|
1
test/fixtures/python/raise-statement.A.py
vendored
1
test/fixtures/python/raise-statement.A.py
vendored
@ -1,4 +1,3 @@
|
||||
raise
|
||||
raise RuntimeError('NO')
|
||||
raise RunTimeError('NO') from e
|
||||
|
||||
|
1
test/fixtures/python/raise-statement.B.py
vendored
1
test/fixtures/python/raise-statement.B.py
vendored
@ -1,4 +1,3 @@
|
||||
raise RuntimeError('YES')
|
||||
raise RunTimeError('YES') from f
|
||||
raise
|
||||
|
||||
|
1
test/fixtures/python/return-statement.A.py
vendored
1
test/fixtures/python/return-statement.A.py
vendored
@ -1,4 +1,3 @@
|
||||
return
|
||||
return a + b, c
|
||||
return not b
|
||||
|
||||
|
1
test/fixtures/python/return-statement.B.py
vendored
1
test/fixtures/python/return-statement.B.py
vendored
@ -1,4 +1,3 @@
|
||||
return c + a, b
|
||||
return
|
||||
return not a
|
||||
|
||||
|
1
test/fixtures/python/set-comprehension.A.py
vendored
1
test/fixtures/python/set-comprehension.A.py
vendored
@ -1,3 +1,2 @@
|
||||
{ c for b in a }
|
||||
{ d for e in f }
|
||||
|
||||
|
1
test/fixtures/python/set-comprehension.B.py
vendored
1
test/fixtures/python/set-comprehension.B.py
vendored
@ -1,3 +1,2 @@
|
||||
{ f for e in d }
|
||||
{ c + 1 for b in a }
|
||||
|
||||
|
1
test/fixtures/python/string.B.py
vendored
1
test/fixtures/python/string.B.py
vendored
@ -7,4 +7,3 @@ ur"hiii"
|
||||
b'gg'
|
||||
`2`
|
||||
"/"
|
||||
|
||||
|
1
test/fixtures/python/try-statement.A.py
vendored
1
test/fixtures/python/try-statement.A.py
vendored
@ -13,4 +13,3 @@ try:
|
||||
a
|
||||
finally:
|
||||
b
|
||||
|
||||
|
1
test/fixtures/python/try-statement.B.py
vendored
1
test/fixtures/python/try-statement.B.py
vendored
@ -13,4 +13,3 @@ except i, j:
|
||||
k
|
||||
except:
|
||||
l
|
||||
|
||||
|
1
test/fixtures/python/tuple.A.py
vendored
1
test/fixtures/python/tuple.A.py
vendored
@ -1,3 +1,2 @@
|
||||
(a, b)
|
||||
(a, b, c,)
|
||||
|
||||
|
1
test/fixtures/python/while-statement.A.py
vendored
1
test/fixtures/python/while-statement.A.py
vendored
@ -2,4 +2,3 @@ while true:
|
||||
pass
|
||||
break
|
||||
continue
|
||||
|
||||
|
1
test/fixtures/python/while-statement.B.py
vendored
1
test/fixtures/python/while-statement.B.py
vendored
@ -2,4 +2,3 @@ while false:
|
||||
break
|
||||
continue
|
||||
pass
|
||||
|
||||
|
1
test/fixtures/python/with-statement.A.py
vendored
1
test/fixtures/python/with-statement.A.py
vendored
@ -1,3 +1,2 @@
|
||||
with a as b:
|
||||
c
|
||||
|
||||
|
1
test/fixtures/python/with-statement.B.py
vendored
1
test/fixtures/python/with-statement.B.py
vendored
@ -1,3 +1,2 @@
|
||||
with b as c:
|
||||
a
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user