- Timestamp:
- 02/03/06 17:17:47 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestModelicaElement.java
r212 r288 2 2 * This file is part of Modelica Development Tooling. 3 3 * 4 * Copyright (c) 2005, Link öpings universitet, Department of4 * Copyright (c) 2005, Link�pings universitet, Department of 5 5 * Computer and Information Science, PELAB 6 6 * … … 23 23 * distribution. 24 24 * 25 * * Neither the name of Link öpings universitet nor the names of its25 * * Neither the name of Link�pings universitet nor the names of its 26 26 * contributors may be used to endorse or promote products derived from 27 27 * this software without specific prior written permission. … … 42 42 package org.modelica.mdt.test; 43 43 44 import org.modelica.mdt. internal.core.ModelicaElement;44 import org.modelica.mdt.core.ModelicaCore; 45 45 46 46 import junit.framework.TestCase; … … 53 53 "'abc'", "'\\\\'", "'!323%%\"'", 54 54 "'!\"#$%&\\'()*+,-./:;<=>?@[\\\\]^_`{|}~'"}; 55 String[] illegalIdentifiers = {"012a", " åäö", "'\\'", "'''", "'\n'"};55 String[] illegalIdentifiers = {"012a", "åäö", "'\\'", "'''", "'\n'"}; 56 56 for(String s: legalIdentifiers) 57 57 { 58 58 assertTrue("Legal identifier rejected ("+s+")", 59 Modelica Element.isLegalIdentifierName(s));59 ModelicaCore.isLegalIdentifierName(s)); 60 60 } 61 61 for(String s: illegalIdentifiers) 62 62 { 63 63 assertFalse("Illegal identifier accepted ("+s+")", 64 Modelica Element.isLegalIdentifierName(s));64 ModelicaCore.isLegalIdentifierName(s)); 65 65 } 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.