Skip to content

Commit

Permalink
Fix broken acceptance tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipDolnik committed Apr 17, 2024
1 parent 32caa74 commit 3ebfa8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SKIE/acceptance-tests
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ class NamespaceProvider(

private val KirModule.moduleNamespaceName: String
get() {
val canUseShortName = !this.shortModuleNamespaceNameCollides
val shortModuleNamespaceName = this.shortModuleNamespaceName

return if (canUseShortName) this.shortModuleNamespaceName else this.fullModuleNamespaceName
val canUseShortName = !this.shortModuleNamespaceNameCollides && shortModuleNamespaceName != sirProvider.skieModule.name.toValidSwiftIdentifier()

return if (canUseShortName) shortModuleNamespaceName else this.fullModuleNamespaceName
}

private val KirModule.moduleDirectoryName: String
Expand Down

0 comments on commit 3ebfa8c

Please sign in to comment.