Support for simple cases when a namespace creates classes from other namespaces.
This commit is contained in:
@@ -40,9 +40,20 @@ public class MultiNamespaceTest extends MultipleFilesTranslationTest {
|
||||
checkFooBoxIsTrue("namespaceVariableVisibleFromOtherNamespace");
|
||||
}
|
||||
|
||||
|
||||
public void testNestedNamespaceFunctionCalledFromOtherNamespace() throws Exception {
|
||||
checkFooBoxIsTrue("nestedNamespaceFunctionCalledFromOtherNamespace");
|
||||
runMultiFileTest("nestedNamespaceFunctionCalledFromOtherNamespace", "a.foo", "box", true);
|
||||
}
|
||||
|
||||
public void testSubnamespacesWithClashingNames() throws Exception {
|
||||
runMultiFileTest("subnamespacesWithClashingNames", "a.foo", "box", true);
|
||||
}
|
||||
|
||||
public void testSubnamespacesWithClashingNamesUsingImport() throws Exception {
|
||||
runMultiFileTest("subnamespacesWithClashingNamesUsingImport", "a.foo", "box", true);
|
||||
}
|
||||
|
||||
public void testCreateClassFromOtherNamespace() throws Exception {
|
||||
runMultiFileTest("createClassFromOtherNamespace", "a.foo", "box", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,4 +37,9 @@ public final class NamespaceTest extends SingleFileTranslationTest {
|
||||
public void testDeeplyNestedNamespaceFunctionCalled() throws Exception {
|
||||
runFunctionOutputTest("deeplyNestedNamespaceFunctionCalled.kt", "foo1.foo2.foo3.foo5.foo6.foo7.foo8", "box", true);
|
||||
}
|
||||
|
||||
|
||||
public void testClassCreatedInDeeplyNestedNamespace() throws Exception {
|
||||
runFunctionOutputTest("classCreatedInDeeplyNestedNamespace.kt", "foo1.foo2.foo3.foo5.foo6.foo7.foo8", "box", true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user