Swift: sort import list

Also fix parent tests with updated `statements.swift` file.
This commit is contained in:
Paolo Tranquilli
2022-05-31 18:22:54 +02:00
parent 3597efb728
commit bc0a32c26e
4 changed files with 336 additions and 305 deletions

View File

@@ -264,8 +264,8 @@ def test_class_dir_imports(opts, input, renderer):
schema.Class("B", bases={"A"}),
]
assert generate_import_list(opts, renderer) == ql.ImportList([
stub_import_prefix + "another.rel.path.A",
stub_import_prefix + "B",
stub_import_prefix + "another.rel.path.A",
])