Package com.redhat.ceylon.compiler.java.test

Examples of com.redhat.ceylon.compiler.java.test.CompilerError


                    "modules/defaultImportsInexistantPackage/isModule/package.ceylon",
                    "modules/defaultImportsInexistantPackage/isModule/foo.ceylon",
                },
                defaultOptions,
                null,
                new CompilerError( 1, "package not found in imported modules: 'doesnotExist' (define a module and add module import to its module descriptor)"),
                new CompilerError( 2, "package not found in imported modules: 'com.redhat.ceylon.compiler.java.test.cmr.modules.defaultImportsInexistantPackage.isModule' (define a module and add module import to its module descriptor)")
            );
        }
    }
View Full Code Here


    }
    @Test
    public void testLitNumericLiteral(){
        compareWithJavaSource("literal/NumericLiteral");
        assertErrors("literal/NumericLiteralErrors",
                new CompilerError(24, "literal outside representable range: 9223372036854775808 is too large to be represented as an Integer"),
                new CompilerError(25, "literal outside representable range: -9223372036854775809 is too large to be represented as an Integer"),
                new CompilerError(27, "literal so large it is indistinguishable from infinity: 1.7976931348623159E308 (use infinity)"),
                new CompilerError(28, "literal so large it is indistinguishable from infinity: 1.7976931348623159E308 (use infinity)"),
                new CompilerError(29, "literal so small it is indistinguishable from zero: 2.0E-324 (use 0.0)"),
                new CompilerError(30, "literal so small it is indistinguishable from zero: 2.0E-324 (use 0.0)"),
                new CompilerError(34, "invalid hexadecimal literal: #CAFEBABECAFEBABE1 has more than 64 bits"),
                new CompilerError(36, "invalid binary literal: $11011101110111011101110111011101110111011101110111011101110111011 has more than 64 bits")
        );
        assertErrors("literal/NumericLiteralParserErrors",
                new CompilerError(23, "incorrect syntax: no viable alternative at character '-'"),
                new CompilerError(24, "incorrect syntax: no viable alternative at character '+'"),
                new CompilerError(25, "incorrect syntax: no viable alternative at character '-'"),
                new CompilerError(26, "incorrect syntax: no viable alternative at character 's'"),
                new CompilerError(28, "incorrect syntax: mismatched character '-' expecting set null"),
                new CompilerError(29, "incorrect syntax: mismatched character '+' expecting set null"),
                new CompilerError(30, "incorrect syntax: no viable alternative at token '23'"),
                new CompilerError(31, "incorrect syntax: mismatched character 's' expecting set null")
        );
    }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.java.test.CompilerError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.