From 01e1c3b3d65d0fa6920c1ac8a3299f8f520c5c90 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sat, 20 Oct 2018 10:11:18 +0100 Subject: [PATCH] rename unit tests which references ImageSpec to BrushSpec. --- DeathSocketCLI/Validation.fs | 2 ++ TestCentre/ConsoleTests.fs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DeathSocketCLI/Validation.fs b/DeathSocketCLI/Validation.fs index 1225133..c0476a3 100644 --- a/DeathSocketCLI/Validation.fs +++ b/DeathSocketCLI/Validation.fs @@ -32,6 +32,8 @@ (String.Concat("The colour specifed is invalid.\n", "Please use the 'list-colours' command to see what you can use.")) + (* This function creates a consistent line width amoung different image + sizes. Use this when the user has no means to specify a pen width. *) let setPenWidth imgWidth imgHeight = let width = float32 imgWidth let height = float32 imgHeight diff --git a/TestCentre/ConsoleTests.fs b/TestCentre/ConsoleTests.fs index 056847c..32f4d0c 100644 --- a/TestCentre/ConsoleTests.fs +++ b/TestCentre/ConsoleTests.fs @@ -59,7 +59,7 @@ (setPenWidth (Random().Next()) (Random().Next())) > 0.0f [] - let ``Can build the intended default image specification`` () = + let ``Can build the intended default BrushSpec`` () = let defaultSpec = { originalPath = loadPath savePath = savePath @@ -71,7 +71,7 @@ defaultSpec = spec [] - let ``Can build an image specification as intended`` () = + let ``Can build a BrushSpec as intended`` () = let colourString = randomColourString () let brush = parseColour colourString let pWidth = float32 (Random().Next())