-
-
Notifications
You must be signed in to change notification settings - Fork 765
Closed
Milestone
Description
There is a test that demonstrates the use of inBinary with String assertions:
assertj/assertj-core/src/test/java/org/assertj/core/api/Assertions_assertThat_inBinary_Test.java
Lines 107 to 112 in 63e56f8
| @Test | |
| void should_assert_String_in_binary() { | |
| assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> assertThat("ab").inBinary().isEqualTo("a6")) | |
| .withMessage(shouldBeEqualMessage("\"['0b00000000_01100001', '0b00000000_01100010']\"", | |
| "\"['0b00000000_01100001', '0b00000000_00110110']\"")); | |
| } |
However, inBinary is not made public in AbstractStringAssert and cannot be used by client code.
Metadata
Metadata
Assignees
Labels
No labels