mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix parsing MD2 and MD4 files; add test cases
This commit is contained in:
@@ -111,6 +111,8 @@ namespace SabreTools.Core.Tools
|
|||||||
"csv" => true,
|
"csv" => true,
|
||||||
"dat" => true,
|
"dat" => true,
|
||||||
"json" => true,
|
"json" => true,
|
||||||
|
"md2" => true,
|
||||||
|
"md4" => true,
|
||||||
"md5" => true,
|
"md5" => true,
|
||||||
"sfv" => true,
|
"sfv" => true,
|
||||||
"sha1" => true,
|
"sha1" => true,
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ namespace SabreTools.Test.DatTools
|
|||||||
[InlineData("test-smdb.txt", DatFormat.EverdriveSMDB, 1)]
|
[InlineData("test-smdb.txt", DatFormat.EverdriveSMDB, 1)]
|
||||||
//[InlineData(null, DatFormat.SabreJSON, 0)] // TODO: Create good-enough test file for this
|
//[InlineData(null, DatFormat.SabreJSON, 0)] // TODO: Create good-enough test file for this
|
||||||
[InlineData("test-sfv.sfv", DatFormat.RedumpSFV, 1)]
|
[InlineData("test-sfv.sfv", DatFormat.RedumpSFV, 1)]
|
||||||
//[InlineData("test-md2.md2", DatFormat.RedumpMD2, 1)] // TODO: Create good-enough test file for this
|
[InlineData("test-md2.md2", DatFormat.RedumpMD2, 1)]
|
||||||
//[InlineData("test-md4.md4", DatFormat.RedumpMD4, 1)] // TODO: Create good-enough test file for this
|
[InlineData("test-md4.md4", DatFormat.RedumpMD4, 1)]
|
||||||
[InlineData("test-md5.md5", DatFormat.RedumpMD5, 1)]
|
[InlineData("test-md5.md5", DatFormat.RedumpMD5, 1)]
|
||||||
[InlineData("test-sha1.sha1", DatFormat.RedumpSHA1, 1)]
|
[InlineData("test-sha1.sha1", DatFormat.RedumpSHA1, 1)]
|
||||||
[InlineData("test-sha256.sha256", DatFormat.RedumpSHA256, 1)]
|
[InlineData("test-sha256.sha256", DatFormat.RedumpSHA256, 1)]
|
||||||
|
|||||||
1
SabreTools.Test/TestData/test-md2.md2
Normal file
1
SabreTools.Test/TestData/test-md2.md2
Normal file
@@ -0,0 +1 @@
|
|||||||
|
8350e5a3e24c153df2275c9f80692773 rom.bin
|
||||||
1
SabreTools.Test/TestData/test-md4.md4
Normal file
1
SabreTools.Test/TestData/test-md4.md4
Normal file
@@ -0,0 +1 @@
|
|||||||
|
31d6cfe0d16ae931b73c59d7e0c089c0 rom.bin
|
||||||
Reference in New Issue
Block a user