Skip to content

Commit

Permalink
Add test for reactive command
Browse files Browse the repository at this point in the history
  • Loading branch information
psw0946 committed Dec 26, 2024
1 parent c210c89 commit e08c2b6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ void bitfieldGetWithOffset() {
assertThat(bitstring.get(key)).isEqualTo("10000000");
}

@Test
void bitfieldGetWithUnsignedOffset() {

long unsignedIntMax = (1L << 32) - 1;
BitFieldArgs bitFieldArgs = BitFieldArgs.Builder.set(signed(8), 0, 1).get(signed(1), (int) unsignedIntMax);

StepVerifier.create(reactive.bitfield(key, bitFieldArgs)).expectNext(Value.just(0L), Value.just(0L)).verifyComplete();
}

@Test
void bitfieldSet() {

Expand Down

0 comments on commit e08c2b6

Please sign in to comment.