From 83855248a6f15dd1c97e73fa88847a9bcff6040c Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 27 Jun 2018 14:32:40 -0700 Subject: [PATCH 1/2] Correctly adjust indices in colour tests --- tests/generators/colour.xml | 88 ++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 36 deletions(-) diff --git a/tests/generators/colour.xml b/tests/generators/colour.xml index bae853d4d..4f951d755 100644 --- a/tests/generators/colour.xml +++ b/tests/generators/colour.xml @@ -1,13 +1,18 @@ + + item + i + test colour picker + Describe this function... - - static colour - - + + static colour + + #ff6600 @@ -23,13 +28,14 @@ test rgb + Describe this function... - - from rgb - - + + from rgb + + @@ -81,6 +87,7 @@ test colour random + Describe this function... @@ -90,22 +97,22 @@ - item + item - - test name - - + + test name + + - item + item @@ -118,17 +125,17 @@ - - test name - - + + test name + + FIRST - item + item @@ -140,31 +147,35 @@ - i + i - 2 + 1 - 7 + 6 - - - test name - - TRUE + + + test name + + NEQ - - 0 + + + + -1 + + @@ -181,12 +192,16 @@ FROM_START - item + item - - i + + + + i + + @@ -210,13 +225,14 @@ test blend + Describe this function... - - blend - - + + blend + + From 28eb8317548fe4ada4a87a358434961bf6dee804 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 27 Jun 2018 14:35:49 -0700 Subject: [PATCH 2/2] Better error messages in colour generator tests --- tests/generators/colour.xml | 58 ++++++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/tests/generators/colour.xml b/tests/generators/colour.xml index 4f951d755..91178793d 100644 --- a/tests/generators/colour.xml +++ b/tests/generators/colour.xml @@ -104,8 +104,18 @@ - - test name + + + + + length of random colour string: + + + + + item + + @@ -125,8 +135,18 @@ - - test name + + + + + format of random colour string: + + + + + item + + @@ -162,8 +182,32 @@ TRUE - - test name + + + + + contents of random colour string: + + + + + item + + + + + at index: + + + + + + + i + + + + @@ -223,7 +267,7 @@ - + test blend Describe this function...