mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:47:22 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
20 lines
668 B
C#
20 lines
668 B
C#
using AIStudio.Settings.DataModel;
|
|
using AIStudio.Tools.Rust;
|
|
|
|
namespace AIStudio.Tests.Settings;
|
|
|
|
public class DataBatchProcessingTests
|
|
{
|
|
/// <summary>
|
|
/// The default patterns are a constant and cannot be built from FileTypes, so this keeps both
|
|
/// lists of the images we hand to the model in step.
|
|
/// </summary>
|
|
[Test]
|
|
public void DefaultPatternsHoldEveryImageTheModelCanRead()
|
|
{
|
|
var patterns = DataBatchProcessing.DEFAULT_FILE_PATTERNS.Split(';');
|
|
var imagePatterns = FileTypes.MODEL_IMAGE.FlattenExtensions().Select(extension => $"*.{extension}");
|
|
|
|
Assert.That(patterns, Is.SupersetOf(imagePatterns));
|
|
}
|
|
} |