File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ public Description appendValue(Object value) {
35
35
append ('"' );
36
36
toJavaSyntax ((Character ) value );
37
37
append ('"' );
38
+ } else if (value instanceof Byte ) {
39
+ append ('<' );
40
+ append (descriptionOf (value ));
41
+ append ("b>" );
38
42
} else if (value instanceof Short ) {
39
43
append ('<' );
40
44
append (descriptionOf (value ));
Original file line number Diff line number Diff line change @@ -62,6 +62,12 @@ public final class BaseDescriptionTest {
62
62
assertEquals ("\" \\ \" \" " , result .toString ());
63
63
}
64
64
65
+ @ Test public void
66
+ bracketsAppendedByteValue () {
67
+ baseDescription .appendValue (Byte .valueOf ("2" ));
68
+ assertEquals ("<2b>" , result .toString ());
69
+ }
70
+
65
71
@ Test public void
66
72
bracketsAppendedShortValue () {
67
73
baseDescription .appendValue (Short .valueOf ("2" ));
You can’t perform that action at this time.
0 commit comments