Skip to content

Commit

Permalink
Test for #411: modules not loaded in metamodel
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Apr 8, 2014
1 parent 9bd5357 commit 9002ce6
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/metamodel/bug411.ceylon
@@ -0,0 +1,5 @@
@test
shared void bug411() {
assert(`module modules.imported`.members.size == 1);
assert(`module modules.imported`.findPackage("modules.imported") exists);
}
1 change: 1 addition & 0 deletions test/metamodel/module.ceylon
Expand Up @@ -19,4 +19,5 @@
*/
"Some module doc"
module metamodel "0.1" {
import modules.imported "1";
}
1 change: 1 addition & 0 deletions test/metamodel/runtime.ceylon
Expand Up @@ -1783,6 +1783,7 @@ shared void run() {
sandbox(bug318);
sandbox(bug320);
sandbox(bug349);
sandbox(bug411);
// those were filed for the JVM compiler initially
sandbox(bugC1196test);
sandbox(bugC1197);
Expand Down
1 change: 1 addition & 0 deletions test/modules/imported/Type.ceylon
@@ -0,0 +1 @@
shared class Type(){}
21 changes: 21 additions & 0 deletions test/modules/imported/module.ceylon
@@ -0,0 +1,21 @@
/*
* Copyright Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the authors tag. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU General Public License version 2.
*
* This particular file is subject to the "Classpath" exception as provided in the
* LICENSE file that accompanied this code.
*
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License,
* along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
module modules.imported "1" {
}
20 changes: 20 additions & 0 deletions test/modules/imported/package.ceylon
@@ -0,0 +1,20 @@
/*
* Copyright Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the authors tag. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU General Public License version 2.
*
* This particular file is subject to the "Classpath" exception as provided in the
* LICENSE file that accompanied this code.
*
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License,
* along with this distribution; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
shared package modules.imported;

0 comments on commit 9002ce6

Please sign in to comment.