mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-07-08 17:57:02 +00:00
Add disabled Quantum test
This commit is contained in:
@@ -28,7 +28,7 @@ Various compression implementations that are used across multiple projects. Most
|
||||
| LZ | Yes | No | KWAJ, QBasic 4.5, and SZDD variants; KWAJ incomplete |
|
||||
| LZX | No | No | |
|
||||
| MSZIP | Yes | No | |
|
||||
| Quantum | Yes* | No | Partial implementation based on standalone archives |
|
||||
| Quantum | Yes* | No | Partial implementation based on standalone archives; not working |
|
||||
|
||||
**Note:** If something is marked with a `*` it means that it need testing.
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using SabreTools.IO.Compression.MSZIP;
|
||||
using SabreTools.IO.Extensions;
|
||||
using Xunit;
|
||||
|
||||
29
SabreTools.IO.Test/Compression/QuantumTests.cs
Normal file
29
SabreTools.IO.Test/Compression/QuantumTests.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using SabreTools.IO.Compression.Quantum;
|
||||
using Xunit;
|
||||
|
||||
namespace SabreTools.IO.Test.Compression
|
||||
{
|
||||
public class QuantumTests
|
||||
{
|
||||
// This test is disabled for the forseeable future. The current Quantum
|
||||
// processing code only handles standalone Quantum archives in theory.
|
||||
// There is additional work that needs to be done to support MS-CAB padding
|
||||
// before this test will pass properly.
|
||||
|
||||
//[Fact]
|
||||
public void DecompressorTest()
|
||||
{
|
||||
// Testing Note: This is a fake file that has been taken
|
||||
// from the CFDATA block of a cabinet file.
|
||||
string path = Path.Combine(Environment.CurrentDirectory, "TestData", "test-archive.qtm");
|
||||
byte[] inputBytes = File.ReadAllBytes(path);
|
||||
|
||||
var decompressor = Decompressor.Create(inputBytes, 19);
|
||||
byte[] output = decompressor.Process();
|
||||
|
||||
Assert.Equal(38470, output.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
SabreTools.IO.Test/TestData/test-archive.qtm
Normal file
BIN
SabreTools.IO.Test/TestData/test-archive.qtm
Normal file
Binary file not shown.
Reference in New Issue
Block a user