dsdecmp/CSharp/DSDecmp/TestProgram.cs
barubary 3a6221a0c6 C#: Fixed the writing of the header of the RLE compressed files; it should state the decompressed size, and not the compressed size. Also added an exception that indicates there is still some input data to read after the compressed stream.
The current RLE implementation passed the first test: compression->decompression resulted in the same file for a manually created test file. (and the compressed file also has the expected format)
2011-04-05 16:44:41 +00:00

23 lines
535 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using DSDecmp.Formats.Nitro;
using System.IO;
namespace DSDecmp
{
class TestProgram
{
public static void Main2(string[] args)
{
new RLE().Compress("tests/rle/testdata.dat", "tests/rle/cmp/testdata.rle.dat");
new RLE().Decompress("tests/rle/cmp/testdata.rle.dat", "tests/rle/dec/testdata.elr.dat");
Console.WriteLine("Success?");
Console.ReadLine();
}
}
}