From 62d5f240de5e9d6ad8de97d0cc6fe6aaa83c9305 Mon Sep 17 00:00:00 2001 From: cdrainxv Date: Thu, 2 Mar 2017 21:44:28 -0700 Subject: [PATCH] Edited test to allow for lowercase hex code --- .../01-responsive-web-design/applied-visual-design.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed/challenges/01-responsive-web-design/applied-visual-design.json b/seed/challenges/01-responsive-web-design/applied-visual-design.json index 6e931c969e..8997ce5c5c 100644 --- a/seed/challenges/01-responsive-web-design/applied-visual-design.json +++ b/seed/challenges/01-responsive-web-design/applied-visual-design.json @@ -1553,9 +1553,9 @@ "
" ], "tests": [ - "assert(code.match(/.orange\\s*\\{\\s*background-color:\\s*#FF7D00;?\\s*\\}/g), 'message: The div element with class orange should have a background-color of orange.');", - "assert(code.match(/.cyan\\s*\\{\\s*background-color:\\s*#00FFFF;?\\s*\\}/g), 'message: The div element with class cyan should have a background-color of cyan.');", - "assert(code.match(/.raspberry\\s*\\{\\s*background-color:\\s*#FF007D;?\\s*\\}/g), 'message: The div element with class raspberry should have a background-color of raspberry.');" + "assert(code.match(/.orange\\s*\\{\\s*background-color:\\s*(#FF7D00|#ff7d00);?\\s*\\}/g), 'message: The div element with class orange should have a background-color of orange.');", + "assert(code.match(/.cyan\\s*\\{\\s*background-color:\\s*(#00FFFF|#00ffff);?\\s*\\}/g), 'message: The div element with class cyan should have a background-color of cyan.');", + "assert(code.match(/.raspberry\\s*\\{\\s*background-color:\\s*(#FF007D|#ff007d);?\\s*\\}/g), 'message: The div element with class raspberry should have a background-color of raspberry.');" ], "solutions": [], "hints": [],