0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-19 16:08:02 +03:00

Added CSV test files for various instruction types and enabled comments in CSV files

This commit is contained in:
bird_egop
2025-04-13 17:17:28 +03:00
parent 3f4b9a8547
commit d1d52af511
8 changed files with 59 additions and 257 deletions

View File

@ -12,6 +12,11 @@ public class RawFromFileDisassemblyTests(ITestOutputHelper output)
[Theory]
[InlineData("pushreg_tests.csv")]
[InlineData("popreg_tests.csv")]
[InlineData("pushimm_tests.csv")]
[InlineData("nop_tests.csv")]
[InlineData("xchg_tests.csv")]
[InlineData("sub_tests.csv")]
[InlineData("segment_override_tests.csv")]
public void RunTests(string file)
{
// Load the CSV test file from embedded resources
@ -28,7 +33,10 @@ public class RawFromFileDisassemblyTests(ITestOutputHelper output)
{
HasHeaderRecord = true,
Delimiter = ";",
BadDataFound = null // Ignore bad data
BadDataFound = null, // Ignore bad data
AllowComments = true, // Enable comments in CSV files
Comment = '#', // Use # as the comment character
IgnoreBlankLines = true // Skip empty lines
};
using var streamReader = new StreamReader(stream);