/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* @test
@bug 4847097
@summary Check surrogate coverage of EUC_TW
*/
/*
* Tests the full surrogate mapping roundtrip fidelity of the
* EUC-TW charset coder updated to support the additional
* planes 4,5,6,7,15
*
* byte->char mappings are contained in external files
* using plane{x}.surrogate as the convention for the input filenames
*
*/
public class SurrogateTestEUCTW {
char[] surrogatePair = new char[2];
int[] expectBytes = new int[4];
// Iterate test over each supported CNS-11643 plane
// containing supplementary character mappings
+ "SurrogateTestEUCTW.plane"
+ testPlane[i]
+ ".surrogates");
BufferedReader r = new BufferedReader(f);
+ 0xd800);
+ 0xdc00);
// Synthesize 4 byte expected byte values from CNS input values
for (int x = 0 ; x < 4 ; x++) {
throw new Exception("EUC_TW Surrogate Encoder error");
}
}
// Next: test round-trip fidelity
throw new Exception("EUCTW Decoder error");
}
}
r.close();
f.close();
}
}
}