Skip to content

Commit

Permalink
Adjust casing
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras committed Sep 22, 2023
1 parent 2c5c195 commit 2460c24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion exercises/practice/resistor-color-duo/.meta/example.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const COLORS = ["black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"]

fun color-code(colors):
fun color_code(colors):
var tens = colors[0]
var ones = colors[1]
return tens * 10 + ones
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
fun color-code(colors):
fun color_code(colors):
pass
14 changes: 7 additions & 7 deletions exercises/practice/resistor-color-duo/resistor_color_duo_test.gd
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const TEST_CASES = [
{"test_name": "Brown and black", "method_name": "color-code", "args": ["brown", "black"], "expected": 10},
{"test_name": "Blue and grey", "method_name": "color-code", "args": ["blue", "grey"], "expected": 68},
{"test_name": "Yellow and violet", "method_name": "color-code", "args": ["yellow", "violet"], "expected": 47},
{"test_name": "White and red", "method_name": "color-code", "args": ["white", "red"], "expected": 92},
{"test_name": "Orange and orange", "method_name": "color-code", "args": ["orange","orange"], "expected": 33},
{"test_name": "Ignore additional colors", "method_name": "color-code", "args": ["green", "brown", "orange"], "expected": 51},
{"test_name": "Black and brown, one-digit", "method_name": "color-code", "args": ["black", "brown"], "expected": 1},
{"test_name": "Brown and black", "method_name": "color_code", "args": ["brown", "black"], "expected": 10},
{"test_name": "Blue and grey", "method_name": "color_code", "args": ["blue", "grey"], "expected": 68},
{"test_name": "Yellow and violet", "method_name": "color_code", "args": ["yellow", "violet"], "expected": 47},
{"test_name": "White and red", "method_name": "color_code", "args": ["white", "red"], "expected": 92},
{"test_name": "Orange and orange", "method_name": "color_code", "args": ["orange","orange"], "expected": 33},
{"test_name": "Ignore additional colors", "method_name": "color_code", "args": ["green", "brown", "orange"], "expected": 51},
{"test_name": "Black and brown, one-digit", "method_name": "color_code", "args": ["black", "brown"], "expected": 1},
]

0 comments on commit 2460c24

Please sign in to comment.