diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-17 23:19:06 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-17 23:19:06 +0300 |
commit | 6a9fab338e52c4bafc7424cc7805fd1183aa8f02 (patch) | |
tree | 8c64373c3aa5a8179e1f141bfc79324aaacf9d0a /Tests | |
parent | c1898354111509268d8227406f16c7c1f7ee327a (diff) |
Attribute table offset
Diffstat (limited to 'Tests')
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 Binary files differindex 043ecf9..090d058 100644 --- a/Tests/References/me_attr_table_0.bin +++ b/Tests/References/me_attr_table_0.bin diff --git a/Tests/References/me_attr_table_1.bin b/Tests/References/me_attr_table_1.bin Binary files differindex 8869f91..b60f018 100644 --- a/Tests/References/me_attr_table_1.bin +++ b/Tests/References/me_attr_table_1.bin diff --git a/Tests/References/me_name_table_0.bin b/Tests/References/me_name_table_0.bin Binary files differindex 408ce72..1de5029 100644 --- a/Tests/References/me_name_table_0.bin +++ b/Tests/References/me_name_table_0.bin diff --git a/Tests/References/me_name_table_1.bin b/Tests/References/me_name_table_1.bin Binary files differindex abc6388..4ddf550 100644 --- a/Tests/References/me_name_table_1.bin +++ b/Tests/References/me_name_table_1.bin diff --git a/Tests/References/me_pattern_0.bin b/Tests/References/me_pattern_0.bin Binary files differindex 7b9781e..16ae730 100644 --- a/Tests/References/me_pattern_0.bin +++ b/Tests/References/me_pattern_0.bin diff --git a/Tests/References/me_pattern_1.bin b/Tests/References/me_pattern_1.bin Binary files differindex 8385c0b..6f0ba17 100644 --- a/Tests/References/me_pattern_1.bin +++ b/Tests/References/me_pattern_1.bin diff --git a/Tests/References/rayon4_attr_table_0.bin b/Tests/References/rayon4_attr_table_0.bin Binary files differindex 4a0d900..cf10b41 100644 --- a/Tests/References/rayon4_attr_table_0.bin +++ b/Tests/References/rayon4_attr_table_0.bin diff --git a/Tests/References/rayon4_attr_table_1.bin b/Tests/References/rayon4_attr_table_1.bin Binary files differindex deead5d..058c328 100644 --- a/Tests/References/rayon4_attr_table_1.bin +++ b/Tests/References/rayon4_attr_table_1.bin diff --git a/Tests/References/rayon4_attr_table_2.bin b/Tests/References/rayon4_attr_table_2.bin Binary files differindex 1c38c1a..f45c0ca 100644 --- a/Tests/References/rayon4_attr_table_2.bin +++ b/Tests/References/rayon4_attr_table_2.bin diff --git a/Tests/References/rayon4_attr_table_3.bin b/Tests/References/rayon4_attr_table_3.bin Binary files differindex 34a185d..fef6059 100644 --- a/Tests/References/rayon4_attr_table_3.bin +++ b/Tests/References/rayon4_attr_table_3.bin diff --git a/Tests/References/rayon4_name_table_0.bin b/Tests/References/rayon4_name_table_0.bin Binary files differindex d00c8ea..1f83c31 100644 --- a/Tests/References/rayon4_name_table_0.bin +++ b/Tests/References/rayon4_name_table_0.bin diff --git a/Tests/References/rayon4_name_table_1.bin b/Tests/References/rayon4_name_table_1.bin Binary files differindex 6120816..c866266 100644 --- a/Tests/References/rayon4_name_table_1.bin +++ b/Tests/References/rayon4_name_table_1.bin diff --git a/Tests/References/rayon4_name_table_2.bin b/Tests/References/rayon4_name_table_2.bin Binary files differindex af0f77b..94a3747 100644 --- a/Tests/References/rayon4_name_table_2.bin +++ b/Tests/References/rayon4_name_table_2.bin diff --git a/Tests/References/rayon4_name_table_3.bin b/Tests/References/rayon4_name_table_3.bin Binary files differindex bf31ad7..9b31557 100644 --- a/Tests/References/rayon4_name_table_3.bin +++ b/Tests/References/rayon4_name_table_3.bin diff --git a/Tests/References/rayon4_palette_0.bin b/Tests/References/rayon4_palette_0.bin Binary files differindex f5c8ad7..c17f5a6 100644 --- a/Tests/References/rayon4_palette_0.bin +++ b/Tests/References/rayon4_palette_0.bin diff --git a/Tests/References/rayon4_palette_1.bin b/Tests/References/rayon4_palette_1.bin Binary files differindex d5e1d59..4f9ee08 100644 --- a/Tests/References/rayon4_palette_1.bin +++ b/Tests/References/rayon4_palette_1.bin diff --git a/Tests/References/rayon4_palette_2.bin b/Tests/References/rayon4_palette_2.bin Binary files differindex 0ecf67d..a97fe83 100644 --- a/Tests/References/rayon4_palette_2.bin +++ b/Tests/References/rayon4_palette_2.bin diff --git a/Tests/References/rayon4_palette_3.bin b/Tests/References/rayon4_palette_3.bin Binary files differindex 23926f8..f81b702 100644 --- a/Tests/References/rayon4_palette_3.bin +++ b/Tests/References/rayon4_palette_3.bin diff --git a/Tests/References/rayon4_pattern_0.bin b/Tests/References/rayon4_pattern_0.bin Binary files differindex 372565d..f3431ed 100644 --- a/Tests/References/rayon4_pattern_0.bin +++ b/Tests/References/rayon4_pattern_0.bin diff --git a/Tests/References/rayon4_pattern_1.bin b/Tests/References/rayon4_pattern_1.bin Binary files differindex 24c73c7..e4b540a 100644 --- a/Tests/References/rayon4_pattern_1.bin +++ b/Tests/References/rayon4_pattern_1.bin diff --git a/Tests/References/rayon4_pattern_2.bin b/Tests/References/rayon4_pattern_2.bin Binary files differindex db917b5..e372878 100644 --- a/Tests/References/rayon4_pattern_2.bin +++ b/Tests/References/rayon4_pattern_2.bin diff --git a/Tests/References/rayon4_pattern_3.bin b/Tests/References/rayon4_pattern_3.bin Binary files differindex 0644e59..4b2091e 100644 --- a/Tests/References/rayon4_pattern_3.bin +++ b/Tests/References/rayon4_pattern_3.bin diff --git a/Tests/References/sworm_attr_table_0.bin b/Tests/References/sworm_attr_table_0.bin Binary files differindex c928273..1a254e3 100644 --- a/Tests/References/sworm_attr_table_0.bin +++ b/Tests/References/sworm_attr_table_0.bin diff --git a/Tests/References/sworm_attr_table_1.bin b/Tests/References/sworm_attr_table_1.bin Binary files differindex 4db5e01..d4c3330 100644 --- a/Tests/References/sworm_attr_table_1.bin +++ b/Tests/References/sworm_attr_table_1.bin diff --git a/Tests/References/sworm_attr_table_2.bin b/Tests/References/sworm_attr_table_2.bin Binary files differindex e3aeb48..c30bf76 100644 --- a/Tests/References/sworm_attr_table_2.bin +++ b/Tests/References/sworm_attr_table_2.bin diff --git a/Tests/References/sworm_attr_table_3.bin b/Tests/References/sworm_attr_table_3.bin Binary files differindex d62f91b..db69e43 100644 --- a/Tests/References/sworm_attr_table_3.bin +++ b/Tests/References/sworm_attr_table_3.bin diff --git a/Tests/References/sworm_pattern_0.bin b/Tests/References/sworm_pattern_0.bin Binary files differindex 85170a0..560b1b3 100644 --- a/Tests/References/sworm_pattern_0.bin +++ b/Tests/References/sworm_pattern_0.bin diff --git a/Tests/References/sworm_pattern_1.bin b/Tests/References/sworm_pattern_1.bin Binary files differindex 6811e74..efae8c9 100644 --- a/Tests/References/sworm_pattern_1.bin +++ b/Tests/References/sworm_pattern_1.bin diff --git a/Tests/References/sworm_pattern_2.bin b/Tests/References/sworm_pattern_2.bin Binary files differindex c9b1a69..488b599 100644 --- a/Tests/References/sworm_pattern_2.bin +++ b/Tests/References/sworm_pattern_2.bin diff --git a/Tests/References/sworm_pattern_3.bin b/Tests/References/sworm_pattern_3.bin Binary files differindex 42af2ab..76c1989 100644 --- a/Tests/References/sworm_pattern_3.bin +++ b/Tests/References/sworm_pattern_3.bin |