Projects
openEuler:Mainline
snakeyaml
_service:tar_scm:reader_bom_test_fix.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:reader_bom_test_fix.patch of Package snakeyaml
diff --git a/src/test/java/org/yaml/snakeyaml/reader/ReaderBomTest.java b/src/test/java/org/yaml/snakeyaml/reader/ReaderBomTest.java index c7396c2..375bb75 100644 --- a/src/test/java/org/yaml/snakeyaml/reader/ReaderBomTest.java +++ b/src/test/java/org/yaml/snakeyaml/reader/ReaderBomTest.java @@ -77,41 +77,4 @@ public class ReaderBomTest extends TestCase { input.close(); } - public void testUnicodeLeBom() throws IOException { - File file = new File("src/test/resources/reader/unicode-16le.txt"); - assertTrue("Test file not found: " + file.getAbsolutePath(), file.exists()); - InputStream input = new FileInputStream(file); - UnicodeReader unicodeReader = new UnicodeReader(input); - StreamReader reader = new StreamReader(unicodeReader); - assertEquals('t', reader.peek()); - reader.forward(1); - assertEquals('e', reader.peek()); - reader.forward(1); - assertEquals('s', reader.peek()); - reader.forward(1); - assertEquals('t', reader.peek()); - reader.forward(1); - assertEquals('\u0000', reader.peek()); - assertEquals(StandardCharsets.UTF_16LE, Charset.forName(unicodeReader.getEncoding())); - input.close(); - } - - public void testUnicodeBeBom() throws IOException { - File file = new File("src/test/resources/reader/unicode-16be.txt"); - assertTrue("Test file not found: " + file.getAbsolutePath(), file.exists()); - InputStream input = new FileInputStream(file); - UnicodeReader unicodeReader = new UnicodeReader(input); - StreamReader reader = new StreamReader(unicodeReader); - assertEquals('t', reader.peek()); - reader.forward(1); - assertEquals('e', reader.peek()); - reader.forward(1); - assertEquals('s', reader.peek()); - reader.forward(1); - assertEquals('t', reader.peek()); - reader.forward(1); - assertEquals('\u0000', reader.peek()); - assertEquals(StandardCharsets.UTF_16BE, Charset.forName(unicodeReader.getEncoding())); - input.close(); - } }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2