diff --git a/src/test/java/org/bench4q/master/test/byteTest.java b/src/test/java/org/bench4q/master/test/byteTest.java index 09387ecb..b03e9ea3 100644 --- a/src/test/java/org/bench4q/master/test/byteTest.java +++ b/src/test/java/org/bench4q/master/test/byteTest.java @@ -6,10 +6,19 @@ import org.junit.Test; public class byteTest { @Test - public void testByte() { + public void testByteForNewLine() { Byte byte1 = Byte.parseByte("10"); assertTrue(byte1.byteValue() == 10); - // char ch = Character. - System.out.println(byte1.byteValue()); + char ch = (char) byte1.byteValue(); + assertEquals('\n', ch); + System.out.println(ch); + } + + @Test + public void testByteForReturn() { + Byte byte2 = Byte.parseByte("13"); + char ch = (char) byte2.byteValue(); + assertEquals('\r', ch); + System.out.println(ch); } }