Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:obsgeek0:repos:ALP
snakeyaml
0003-Fix-ReaderBomTest.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-Fix-ReaderBomTest.patch of Package snakeyaml
From 6690e47dfc0d46b4923a5b2c55279782b95a335a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch> Date: Wed, 12 Oct 2022 11:05:10 +0200 Subject: [PATCH 3/3] Fix ReaderBomTest --- .../yaml/snakeyaml/reader/ReaderBomTest.java | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/src/test/java/org/yaml/snakeyaml/reader/ReaderBomTest.java b/src/test/java/org/yaml/snakeyaml/reader/ReaderBomTest.java index c7396c2c..375bb756 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(); - } } -- 2.37.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor