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())