Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
Add samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ajami1331 committed Dec 26, 2023
1 parent 6fd4acb commit d2b0f62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ static void Main(FileInfo? file = null)
return;
}

if (config.Samples is not null)
{
foreach (var sample in config.Samples)
{
if (sample < 0 || sample >= config.TestCases.Length)
{
Console.WriteLine("Sample must be between 0 and {0}. Sample is {1}", config.TestCases.Length - 1, sample);
return;
}
}
}

Console.WriteLine("Validation successfull.");
}

Expand Down
2 changes: 2 additions & 0 deletions TestCaseConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
public string? ValidatorSourceCode { get; set; }

Check warning on line 13 in TestCaseConfig.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'TestCaseConfig.ValidatorSourceCode'

public string? ValidatorLanguage { get; set; }

Check warning on line 15 in TestCaseConfig.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'TestCaseConfig.ValidatorLanguage'

public long[]? Samples { get; set; }
}

public class TestCase
Expand Down

0 comments on commit d2b0f62

Please sign in to comment.