Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NesTiler.git/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-17 23:19:06 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-17 23:19:06 +0300
commit6a9fab338e52c4bafc7424cc7805fd1183aa8f02 (patch)
tree8c64373c3aa5a8179e1f141bfc79324aaacf9d0a /Tests
parentc1898354111509268d8227406f16c7c1f7ee327a (diff)
Attribute table offset
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Program.cs136
-rw-r--r--Tests/References/me_attr_table_0.binbin32 -> 32 bytes
-rw-r--r--Tests/References/me_attr_table_1.binbin32 -> 32 bytes
-rw-r--r--Tests/References/me_name_table_0.binbin512 -> 512 bytes
-rw-r--r--Tests/References/me_name_table_1.binbin448 -> 448 bytes
-rw-r--r--Tests/References/me_pattern_0.binbin3728 -> 3680 bytes
-rw-r--r--Tests/References/me_pattern_1.binbin2912 -> 2912 bytes
-rw-r--r--Tests/References/rayon4_attr_table_0.binbin16 -> 16 bytes
-rw-r--r--Tests/References/rayon4_attr_table_1.binbin16 -> 16 bytes
-rw-r--r--Tests/References/rayon4_attr_table_2.binbin16 -> 16 bytes
-rw-r--r--Tests/References/rayon4_attr_table_3.binbin16 -> 16 bytes
-rw-r--r--Tests/References/rayon4_name_table_0.binbin256 -> 256 bytes
-rw-r--r--Tests/References/rayon4_name_table_1.binbin256 -> 256 bytes
-rw-r--r--Tests/References/rayon4_name_table_2.binbin256 -> 256 bytes
-rw-r--r--Tests/References/rayon4_name_table_3.binbin192 -> 192 bytes
-rw-r--r--Tests/References/rayon4_palette_0.binbin4 -> 4 bytes
-rw-r--r--Tests/References/rayon4_palette_1.binbin4 -> 4 bytes
-rw-r--r--Tests/References/rayon4_palette_2.binbin4 -> 4 bytes
-rw-r--r--Tests/References/rayon4_palette_3.binbin4 -> 4 bytes
-rw-r--r--Tests/References/rayon4_pattern_0.binbin4016 -> 3824 bytes
-rw-r--r--Tests/References/rayon4_pattern_1.binbin4032 -> 4096 bytes
-rw-r--r--Tests/References/rayon4_pattern_2.binbin3328 -> 3472 bytes
-rw-r--r--Tests/References/rayon4_pattern_3.binbin2592 -> 2592 bytes
-rw-r--r--Tests/References/sworm_attr_table_0.binbin16 -> 16 bytes
-rw-r--r--Tests/References/sworm_attr_table_1.binbin16 -> 16 bytes
-rw-r--r--Tests/References/sworm_attr_table_2.binbin16 -> 16 bytes
-rw-r--r--Tests/References/sworm_attr_table_3.binbin16 -> 16 bytes
-rw-r--r--Tests/References/sworm_pattern_0.binbin3968 -> 3968 bytes
-rw-r--r--Tests/References/sworm_pattern_1.binbin4096 -> 4096 bytes
-rw-r--r--Tests/References/sworm_pattern_2.binbin3872 -> 3872 bytes
-rw-r--r--Tests/References/sworm_pattern_3.binbin1904 -> 1904 bytes
31 files changed, 68 insertions, 68 deletions
diff --git a/Tests/Program.cs b/Tests/Program.cs
index 53fcda7..a644b81 100644
--- a/Tests/Program.cs
+++ b/Tests/Program.cs
@@ -145,7 +145,7 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
{
var imagePath1 = Path.Combine(ImagesPath, "blaster_master_left.png");
var imagePath2 = Path.Combine(ImagesPath, "blaster_master_right.png");
- DoBenchmarkSharedPattern(imagePath1, imagePath2);
+ DoTestSharedPattern(imagePath1, imagePath2);
}
[Test]
@@ -165,7 +165,7 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var prefix = Path.GetFileNameWithoutExtension(imagePath);
var args = new string[] {
"--enable-palettes", "0,1,2,3",
- "-input-0", $"{imagePath}",
+ "--input-0", $"{imagePath}",
"--out-pattern-table-0", PatternTablePath(prefix, 0),
"--out-name-table-0", NameTablePath(prefix, 0),
"--out-attribute-table-0", AttrTablePath(prefix, 0),
@@ -177,25 +177,25 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var r = Program.Main(args);
if (r != 0) throw new InvalidOperationException($"Return code: {r}");
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))));
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))), "pattern table");
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))));
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))), "nametable");
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))));
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))), "attribute table");
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))));
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))), "palette 0");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))), "palette 1");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))), "palette 2");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))), "palette 3");
}
- public void DoBenchmarkSharedPattern(string imagePath1, string imagePath2)
+ public void DoTestSharedPattern(string imagePath1, string imagePath2)
{
var prefix = Path.GetFileNameWithoutExtension(imagePath1) + "_" + Path.GetFileNameWithoutExtension(imagePath2);
var args = new string[] {
"--enable-palettes", "0,1,2,3",
- "-input-0", $"{imagePath1}",
- "-input-1", $"{imagePath2}",
+ "--input-0", $"{imagePath1}",
+ "--input-1", $"{imagePath2}",
"--out-pattern-table", PatternTablePath(prefix, 0),
"--out-name-table-0", NameTablePath(prefix, 0),
"--out-name-table-1", NameTablePath(prefix, 1),
@@ -210,18 +210,18 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var r = Program.Main(args);
if (r != 0) throw new InvalidOperationException($"Return code: {r}");
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))));
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))), "pattern table");
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))), "nametable 0");
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))), "nametable 1");
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))), "attribute table 0");
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))), "attribute table 1");
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))));
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))), "palette 0");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))), "palette 1");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))), "palette 2");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))), "palette 3");
}
public void DoTestSplit2(string imagePath)
@@ -229,8 +229,8 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var prefix = Path.GetFileNameWithoutExtension(imagePath);
var args = new string[] {
"--enable-palettes", "0,1,2,3",
- "-input-0", $"{imagePath}:0:128",
- "-input-1", $"{imagePath}:128:112",
+ "--input-0", $"{imagePath}:0:128",
+ "--input-1", $"{imagePath}:128:112",
"--out-pattern-table-0", PatternTablePath(prefix, 0),
"--out-pattern-table-1", PatternTablePath(prefix, 1),
"--out-name-table-0", NameTablePath(prefix, 0),
@@ -245,19 +245,19 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var r = Program.Main(args);
if (r != 0) throw new InvalidOperationException($"Return code: {r}");
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))), "pattern table 0");
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 1)))), "pattern table 1");
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))), "nametable 0");
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))), "nametable 1");
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))), "attribute table 0");
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))), "attribute table 1");
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))));
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))), "palette 0");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))), "palette 1");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))), "palette 2");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))), "palette 3");
}
public void DoTestSplit2Lossy(string imagePath)
@@ -265,8 +265,8 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var prefix = Path.GetFileNameWithoutExtension(imagePath);
var args = new string[] {
"--enable-palettes", "0,1,2,3",
- "-input-0", $"{imagePath}:0:128",
- "-input-1", $"{imagePath}:128:112",
+ "--input-0", $"{imagePath}:0:128",
+ "--input-1", $"{imagePath}:128:112",
"--out-pattern-table-0", PatternTablePath(prefix, 0),
"--out-pattern-table-1", PatternTablePath(prefix, 1),
"--out-name-table-0", NameTablePath(prefix, 0),
@@ -282,19 +282,19 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var r = Program.Main(args);
if (r != 0) throw new InvalidOperationException($"Return code: {r}");
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))), "pattern table 0");
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 1)))), "pattern table 1");
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))), "nametable 0");
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))), "nametable 1");
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))));
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))), "attribute table 0");
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))), "attribute table 1");
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))));
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))), "palette 0");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))), "palette 1");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))), "palette 2");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))), "palette 3");
}
public void DoTestSplit4(string imagePath)
@@ -302,10 +302,10 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var prefix = Path.GetFileNameWithoutExtension(imagePath);
var args = new string[] {
"--enable-palettes", "0,1,2,3",
- "-input-0", $"{imagePath}:0:64",
- "-input-1", $"{imagePath}:64:64",
- "-input-2", $"{imagePath}:128:64",
- "-input-3", $"{imagePath}:192:48",
+ "--input-0", $"{imagePath}:0:64",
+ "--input-1", $"{imagePath}:64:64",
+ "--input-2", $"{imagePath}:128:64",
+ "--input-3", $"{imagePath}:192:48",
"--out-pattern-table-0", PatternTablePath(prefix, 0),
"--out-pattern-table-1", PatternTablePath(prefix, 1),
"--out-pattern-table-2", PatternTablePath(prefix, 2),
@@ -326,25 +326,25 @@ namespace com.clusterrr.Famicom.NesTiler.Tests
var r = Program.Main(args);
if (r != 0) throw new InvalidOperationException($"Return code: {r}");
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 3)))));
-
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(NameTablePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 3)))));
-
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 3)))));
-
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))));
- Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))));
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 0)))), "pattern table 0");
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 1)))), "pattern table 1");
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 2)))), "pattern table 2");
+ Assert.That(File.ReadAllBytes(PatternTablePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PatternTablePath(prefix, 3)))), "pattern table 3");
+
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 0)))), "nametable 0");
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 1)))), "nametable 1");
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 2)))), "nametable 2");
+ Assert.That(File.ReadAllBytes(NameTablePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, NameTablePath(prefix, 3)))), "nametable 3");
+
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 0)))), "attribute table 0");
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 1)))), "attribute table 1");
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 2)))), "attribute table 2");
+ Assert.That(File.ReadAllBytes(AttrTablePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, AttrTablePath(prefix, 3)))), "attribute table 3");
+
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 0)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 0)))), "palette 0");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 1)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 1)))), "palette 1");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 2)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 2)))), "palette 2");
+ Assert.That(File.ReadAllBytes(PalettePath(prefix, 3)), Is.EqualTo(File.ReadAllBytes(Path.Combine(ReferencesDir, PalettePath(prefix, 3)))), "palette 3");
}
}
} \ No newline at end of file
diff --git a/Tests/References/me_attr_table_0.bin b/Tests/References/me_attr_table_0.bin
index 043ecf9..090d058 100644
--- a/Tests/References/me_attr_table_0.bin
+++ b/Tests/References/me_attr_table_0.bin
Binary files differ
diff --git a/Tests/References/me_attr_table_1.bin b/Tests/References/me_attr_table_1.bin
index 8869f91..b60f018 100644
--- a/Tests/References/me_attr_table_1.bin
+++ b/Tests/References/me_attr_table_1.bin
Binary files differ
diff --git a/Tests/References/me_name_table_0.bin b/Tests/References/me_name_table_0.bin
index 408ce72..1de5029 100644
--- a/Tests/References/me_name_table_0.bin
+++ b/Tests/References/me_name_table_0.bin
Binary files differ
diff --git a/Tests/References/me_name_table_1.bin b/Tests/References/me_name_table_1.bin
index abc6388..4ddf550 100644
--- a/Tests/References/me_name_table_1.bin
+++ b/Tests/References/me_name_table_1.bin
Binary files differ
diff --git a/Tests/References/me_pattern_0.bin b/Tests/References/me_pattern_0.bin
index 7b9781e..16ae730 100644
--- a/Tests/References/me_pattern_0.bin
+++ b/Tests/References/me_pattern_0.bin
Binary files differ
diff --git a/Tests/References/me_pattern_1.bin b/Tests/References/me_pattern_1.bin
index 8385c0b..6f0ba17 100644
--- a/Tests/References/me_pattern_1.bin
+++ b/Tests/References/me_pattern_1.bin
Binary files differ
diff --git a/Tests/References/rayon4_attr_table_0.bin b/Tests/References/rayon4_attr_table_0.bin
index 4a0d900..cf10b41 100644
--- a/Tests/References/rayon4_attr_table_0.bin
+++ b/Tests/References/rayon4_attr_table_0.bin
Binary files differ
diff --git a/Tests/References/rayon4_attr_table_1.bin b/Tests/References/rayon4_attr_table_1.bin
index deead5d..058c328 100644
--- a/Tests/References/rayon4_attr_table_1.bin
+++ b/Tests/References/rayon4_attr_table_1.bin
Binary files differ
diff --git a/Tests/References/rayon4_attr_table_2.bin b/Tests/References/rayon4_attr_table_2.bin
index 1c38c1a..f45c0ca 100644
--- a/Tests/References/rayon4_attr_table_2.bin
+++ b/Tests/References/rayon4_attr_table_2.bin
Binary files differ
diff --git a/Tests/References/rayon4_attr_table_3.bin b/Tests/References/rayon4_attr_table_3.bin
index 34a185d..fef6059 100644
--- a/Tests/References/rayon4_attr_table_3.bin
+++ b/Tests/References/rayon4_attr_table_3.bin
Binary files differ
diff --git a/Tests/References/rayon4_name_table_0.bin b/Tests/References/rayon4_name_table_0.bin
index d00c8ea..1f83c31 100644
--- a/Tests/References/rayon4_name_table_0.bin
+++ b/Tests/References/rayon4_name_table_0.bin
Binary files differ
diff --git a/Tests/References/rayon4_name_table_1.bin b/Tests/References/rayon4_name_table_1.bin
index 6120816..c866266 100644
--- a/Tests/References/rayon4_name_table_1.bin
+++ b/Tests/References/rayon4_name_table_1.bin
Binary files differ
diff --git a/Tests/References/rayon4_name_table_2.bin b/Tests/References/rayon4_name_table_2.bin
index af0f77b..94a3747 100644
--- a/Tests/References/rayon4_name_table_2.bin
+++ b/Tests/References/rayon4_name_table_2.bin
Binary files differ
diff --git a/Tests/References/rayon4_name_table_3.bin b/Tests/References/rayon4_name_table_3.bin
index bf31ad7..9b31557 100644
--- a/Tests/References/rayon4_name_table_3.bin
+++ b/Tests/References/rayon4_name_table_3.bin
Binary files differ
diff --git a/Tests/References/rayon4_palette_0.bin b/Tests/References/rayon4_palette_0.bin
index f5c8ad7..c17f5a6 100644
--- a/Tests/References/rayon4_palette_0.bin
+++ b/Tests/References/rayon4_palette_0.bin
Binary files differ
diff --git a/Tests/References/rayon4_palette_1.bin b/Tests/References/rayon4_palette_1.bin
index d5e1d59..4f9ee08 100644
--- a/Tests/References/rayon4_palette_1.bin
+++ b/Tests/References/rayon4_palette_1.bin
Binary files differ
diff --git a/Tests/References/rayon4_palette_2.bin b/Tests/References/rayon4_palette_2.bin
index 0ecf67d..a97fe83 100644
--- a/Tests/References/rayon4_palette_2.bin
+++ b/Tests/References/rayon4_palette_2.bin
Binary files differ
diff --git a/Tests/References/rayon4_palette_3.bin b/Tests/References/rayon4_palette_3.bin
index 23926f8..f81b702 100644
--- a/Tests/References/rayon4_palette_3.bin
+++ b/Tests/References/rayon4_palette_3.bin
Binary files differ
diff --git a/Tests/References/rayon4_pattern_0.bin b/Tests/References/rayon4_pattern_0.bin
index 372565d..f3431ed 100644
--- a/Tests/References/rayon4_pattern_0.bin
+++ b/Tests/References/rayon4_pattern_0.bin
Binary files differ
diff --git a/Tests/References/rayon4_pattern_1.bin b/Tests/References/rayon4_pattern_1.bin
index 24c73c7..e4b540a 100644
--- a/Tests/References/rayon4_pattern_1.bin
+++ b/Tests/References/rayon4_pattern_1.bin
Binary files differ
diff --git a/Tests/References/rayon4_pattern_2.bin b/Tests/References/rayon4_pattern_2.bin
index db917b5..e372878 100644
--- a/Tests/References/rayon4_pattern_2.bin
+++ b/Tests/References/rayon4_pattern_2.bin
Binary files differ
diff --git a/Tests/References/rayon4_pattern_3.bin b/Tests/References/rayon4_pattern_3.bin
index 0644e59..4b2091e 100644
--- a/Tests/References/rayon4_pattern_3.bin
+++ b/Tests/References/rayon4_pattern_3.bin
Binary files differ
diff --git a/Tests/References/sworm_attr_table_0.bin b/Tests/References/sworm_attr_table_0.bin
index c928273..1a254e3 100644
--- a/Tests/References/sworm_attr_table_0.bin
+++ b/Tests/References/sworm_attr_table_0.bin
Binary files differ
diff --git a/Tests/References/sworm_attr_table_1.bin b/Tests/References/sworm_attr_table_1.bin
index 4db5e01..d4c3330 100644
--- a/Tests/References/sworm_attr_table_1.bin
+++ b/Tests/References/sworm_attr_table_1.bin
Binary files differ
diff --git a/Tests/References/sworm_attr_table_2.bin b/Tests/References/sworm_attr_table_2.bin
index e3aeb48..c30bf76 100644
--- a/Tests/References/sworm_attr_table_2.bin
+++ b/Tests/References/sworm_attr_table_2.bin
Binary files differ
diff --git a/Tests/References/sworm_attr_table_3.bin b/Tests/References/sworm_attr_table_3.bin
index d62f91b..db69e43 100644
--- a/Tests/References/sworm_attr_table_3.bin
+++ b/Tests/References/sworm_attr_table_3.bin
Binary files differ
diff --git a/Tests/References/sworm_pattern_0.bin b/Tests/References/sworm_pattern_0.bin
index 85170a0..560b1b3 100644
--- a/Tests/References/sworm_pattern_0.bin
+++ b/Tests/References/sworm_pattern_0.bin
Binary files differ
diff --git a/Tests/References/sworm_pattern_1.bin b/Tests/References/sworm_pattern_1.bin
index 6811e74..efae8c9 100644
--- a/Tests/References/sworm_pattern_1.bin
+++ b/Tests/References/sworm_pattern_1.bin
Binary files differ
diff --git a/Tests/References/sworm_pattern_2.bin b/Tests/References/sworm_pattern_2.bin
index c9b1a69..488b599 100644
--- a/Tests/References/sworm_pattern_2.bin
+++ b/Tests/References/sworm_pattern_2.bin
Binary files differ
diff --git a/Tests/References/sworm_pattern_3.bin b/Tests/References/sworm_pattern_3.bin
index 42af2ab..76c1989 100644
--- a/Tests/References/sworm_pattern_3.bin
+++ b/Tests/References/sworm_pattern_3.bin
Binary files differ