move all tests to top-level tests/ directory

This commit is contained in:
Jędrzej Boczar 2021-04-22 20:53:30 +02:00 committed by Kiyan
parent d4e8d3e659
commit 63a88c873f
56 changed files with 72 additions and 72 deletions

View file

@ -0,0 +1,11 @@
def aligned_indent(arg1,
arg2):
pass
aligned_indent(1,
2)
aligned_indent(1,
2
)

View file

@ -0,0 +1,14 @@
from os import (
path,
name as OsName
)
def foo(x):
pass
class Foo:
def __init__(self):
pass
def foo(self):
pass

View file

@ -0,0 +1,23 @@
# list
a = [
1, 2,
3
]
# set
b = {
3,
4,
}
# dict
c = {
'a': 'b',
'c': 1,
}
# tuple
d = (
1,
2,
)

View file

@ -0,0 +1,27 @@
a = [
1, 2, 3]
b = [
x + 1
for x in range(3)]
c = [[[
1
]]]
d = [[[
4]]]
e = [[
1], 2, 3]
def foo(x, y):
pass
foo(
a,
b)
if (a and
b):
pass

View file

@ -0,0 +1,25 @@
# list
a = [
x + 1 for x in range(3)
]
# dict
b = {
x: x + 1 for x in range(3)
}
# generator
c = (
x * x for x in range(3)
)
# set
d = {
x + x for x in range(3)
}
# other styles
e = [
x + 1 for x
in range(3)
]

View file

@ -0,0 +1,22 @@
if a == a:
x = 1
elif b:
x = 2
else:
x = 3
while False:
pass
for _ in range(3):
pass
with open('/tmp/f', 'w') as f:
pass
try:
pass
except:
pass
finally:
pass

View file

@ -0,0 +1,6 @@
def hanging_indent(
arg1, arg2):
pass
hanging_indent(
1, 2)

View file

@ -0,0 +1,8 @@
a = 2 \
+ 2
b = 'hello' \
'world'
c = lambda x: \
x + 3

View file

@ -0,0 +1,41 @@
a = [
1,
[
2,
[
3
]
]
]
b = [
1, [[
3
],
]
]
c = [[[
3
]]]
d = {
'a': [
2, 3
],
'c': (
[1, 2, 3],
[
2,
4
], {
6,
8
}
)
}
e = (1, 2,
3, 4,
5, 6
)

View file

@ -0,0 +1,17 @@
a = """
String A
"""
b = """
String B
"""
c = """
String C
"""
d = """
String D
String D
String D
"""