Skip to content

Commit 34d8310

Browse files
committed
Add test for ASTC error
1 parent e7b9db0 commit 34d8310

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

AssetRipper.TextureDecoder.Tests/AstcTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,11 @@ private static void AssertCorrectDecompression<T>(int blockWidth, int blockHeigh
7474
}
7575
ByteArrayDeviation.AssertMinimalDeviation(decompressedData, AndroidTextures.Logo_00.Data, maxMeanDeviation, maxStandardDeviation);
7676
}
77+
78+
[Ignore("Bug not yet fixed")]
79+
[TestCase(new byte[16] { 83, 1, 147, 104, 198, 173, 55, 116, 182, 66, 105, 11, 102, 43, 148, 125 }, 8, 8, TestName = "GetBits Should not throw in DecodeIntseq")]
80+
public void DecodesBlockWithoutThrowing(byte[] block, int blockWidth, int blockHeight)
81+
{
82+
Assert.DoesNotThrow(() => AstcDecoder.DecodeASTC(block, blockWidth, blockHeight, blockWidth, blockHeight, out _));
83+
}
7784
}

0 commit comments

Comments
 (0)