From c90e0331484445cc778ad02c9aa5e8473638cee7 Mon Sep 17 00:00:00 2001
From: jokebookservice1 <jokebookyeye@gmail.com>
Date: Wed, 10 Oct 2018 18:16:58 +0100
Subject: [PATCH] test: add more comments, add additional test

---
 test/unit/blocks_looks.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/unit/blocks_looks.js b/test/unit/blocks_looks.js
index 74d4a6fe8..6cc9f7c9c 100644
--- a/test/unit/blocks_looks.js
+++ b/test/unit/blocks_looks.js
@@ -54,9 +54,12 @@ test('switch costume block runs correctly', t => {
     // Non-existant costumes do nothing
     t.strictEqual(testCostume(['a', 'b', 'c', 'd'], 'e', 3), 3);
 
-    // Difference between string and numeric arguments
+    // Numeric arguments are always the costume index
+    // String arguments are treated as costume names, and coerced to
+    // a costume index as a fallback
     t.strictEqual(testCostume(['a', 'b', 'c', '2'], 2), 2);
     t.strictEqual(testCostume(['a', 'b', 'c', '2'], '2'), 4);
+    t.strictEqual(testCostume(['a', 'b', 'c'], '2'), 2);
 
     // 'previous costume' and 'next costume' increment/decrement
     t.strictEqual(testCostume(['a', 'b', 'c', 'd'], 'previous costume', 3), 2);