[Pydev-cvs] org.python.pydev.core/tests/org/python/pydev/core EncodingsTest.java,NONE,1.1 TestEncodi
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-04-17 18:05:55
|
Update of /cvsroot/pydev/org.python.pydev.core/tests/org/python/pydev/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28457/tests/org/python/pydev/core Added Files: EncodingsTest.java Removed Files: TestEncodings.java Log Message: --- TestEncodings.java DELETED --- --- NEW FILE: EncodingsTest.java --- package org.python.pydev.core; import java.nio.charset.Charset; import junit.framework.TestCase; public class EncodingsTest extends TestCase { public static void main(String[] args) { junit.textui.TestRunner.run(EncodingsTest.class); } public void testRefEncoding() throws Exception { String validEncoding = REF.getValidEncoding("latin-1"); assertEquals("latin1", validEncoding); //supported assertTrue(Charset.isSupported("latin1")); assertTrue(Charset.isSupported("utf8")); assertTrue(Charset.isSupported("utf_16")); assertTrue(Charset.isSupported("UTF-8")); assertTrue(Charset.isSupported("utf-8")); //not supported assertTrue(!Charset.isSupported("latin-1")); assertTrue(!Charset.isSupported("utf_8")); //why utf_16 is supported and utf_8 is not is something that really amazes me. } } |