Skip to content

Commit 0cfda7a

Browse files
alexr-bqcurrantw
andauthored
Update tests/Valkey.Glide.IntegrationTests/BitmapCommandTests.cs
Co-authored-by: Taylor Curran <[email protected]> Signed-off-by: Alex Rehnby-Martin <[email protected]>
1 parent c322f90 commit 0cfda7a

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

tests/Valkey.Glide.IntegrationTests/BitmapCommandTests.cs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,11 @@ public async Task GetBit_ReturnsCorrectBitValue(BaseClient client)
1818
await client.StringSetAsync(key, "A");
1919

2020
// Test bit positions in 'A' (01000001)
21-
bool bit0 = await client.StringGetBitAsync(key, 0); // Should be false (0)
22-
bool bit1 = await client.StringGetBitAsync(key, 1); // Should be true (1)
23-
bool bit2 = await client.StringGetBitAsync(key, 2); // Should be false (0)
24-
bool bit6 = await client.StringGetBitAsync(key, 6); // Should be false (0)
25-
bool bit7 = await client.StringGetBitAsync(key, 7); // Should be true (1)
26-
27-
Assert.False(bit0);
28-
Assert.True(bit1);
29-
Assert.False(bit2);
30-
Assert.False(bit6);
31-
Assert.True(bit7);
21+
Assert.False(await client.StringGetBitAsync(key, 0));
22+
Assert.True(await client.StringGetBitAsync(key, 1));
23+
Assert.False(await client.StringGetBitAsync(key, 2));
24+
Assert.False(await client.StringGetBitAsync(key, 6));
25+
Assert.True(await client.StringGetBitAsync(key, 7));
3226
}
3327

3428
[Theory(DisableDiscoveryEnumeration = true)]

0 commit comments

Comments
 (0)