[Native][tests] Minor. Simplify assertion expression
This commit is contained in:
+1
-6
@@ -230,12 +230,7 @@ internal class StandardTestCaseGroupProvider(private val settings: Settings) : T
|
|||||||
val existingPackageName = firstMeaningfulLine?.getExistingPackageName()
|
val existingPackageName = firstMeaningfulLine?.getExistingPackageName()
|
||||||
if (existingPackageName != null) {
|
if (existingPackageName != null) {
|
||||||
// Validate it.
|
// Validate it.
|
||||||
assertTrue(
|
assertTrue(existingPackageName.isSameOrSubpackageOf(basePackageName)) {
|
||||||
existingPackageName == basePackageName
|
|
||||||
|| (existingPackageName.length > basePackageName.length
|
|
||||||
&& existingPackageName.startsWith(basePackageName)
|
|
||||||
&& existingPackageName[basePackageName.length] == '.')
|
|
||||||
) {
|
|
||||||
val location = Location(testDataFile, firstMeaningfulLine.number)
|
val location = Location(testDataFile, firstMeaningfulLine.number)
|
||||||
"""
|
"""
|
||||||
$location: Invalid package name declaration found: $firstMeaningfulLine
|
$location: Invalid package name declaration found: $firstMeaningfulLine
|
||||||
|
|||||||
Reference in New Issue
Block a user