Skip to content

Commit fcde87b

Browse files
committed
Fix tests after migration .NET 10. Gzip returns longer stream by 4 bytes.
1 parent d35f9b9 commit fcde87b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Spectron.Files.Tests/Szx/Blocks/TapeBlockTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public TapeBlockTests()
1717
}
1818

1919
[Theory]
20-
[InlineData(true, 2641)]
20+
[InlineData(true, 2645)]
2121
[InlineData(false, 4588)]
2222
public void Tape_ShouldConvertToBytes(bool isCompressed, DWord expectedSize)
2323
{
@@ -37,7 +37,7 @@ public void Tape_ShouldConvertToBytes(bool isCompressed, DWord expectedSize)
3737
BitConverter.ToUInt16(data[8..10].ToArray()).ShouldBe(2);
3838
BitConverter.ToUInt16(data[10..12].ToArray()).ShouldBe((Word)(isCompressed ? TapeBlock.FlagsCompressed + TapeBlock.FlagsEmbedded : TapeBlock.FlagsEmbedded));
3939
BitConverter.ToUInt32(data[12..16].ToArray()).ShouldBe(4560);
40-
BitConverter.ToUInt32(data[16..20].ToArray()).ShouldBe((DWord)(isCompressed ? 2613 : 4560));
40+
BitConverter.ToUInt32(data[16..20].ToArray()).ShouldBe((DWord)(isCompressed ? 2617 : 4560));
4141
Encoding.ASCII.GetString(data[20..36]).Trim('\0').ShouldBe(".tap");
4242
if (!isCompressed)
4343
{
@@ -64,7 +64,7 @@ public void Tape_ShouldConvertFromBytes(bool compress)
6464
tape.CurrentBlockNo.ShouldBe(2);
6565
tape.Flags.ShouldBe((Word)(compress ? TapeBlock.FlagsCompressed + TapeBlock.FlagsEmbedded : TapeBlock.FlagsEmbedded));
6666
tape.UncompressedSize.ShouldBe(4560);
67-
tape.CompressedSize.ShouldBe((Word)(compress ? 2613 : tape.Data.Length));
67+
tape.CompressedSize.ShouldBe((Word)(compress ? 2617 : tape.Data.Length));
6868
tape.FileExtension.ShouldBe(".tap");
6969
tape.Data.ShouldBeEquivalentTo(_tapeData);
7070
}

0 commit comments

Comments
 (0)