-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix function name
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
exercises/practice/armstrong-numbers/armstrong_numbers_test.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
func test_zero_is_an_armstrong_number(solution_script): | ||
var value = 0 | ||
var expected = true | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_single_digit_numbers_are_armstrong_numbers(solution_script): | ||
var value = 5 | ||
var expected = true | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_there_are_no_two_digit_armstrong_numbers(solution_script): | ||
var value = 10 | ||
var expected = false | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_three_digit_number_that_is_an_armstrong_number(solution_script): | ||
var value = 153 | ||
var expected = true | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_three_digit_number_that_is_not_an_armstrong_number(solution_script): | ||
var value = 100 | ||
var expected = false | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_four_digit_number_that_is_an_armstrong_number(solution_script): | ||
var value = 9474 | ||
var expected = true | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_four_digit_number_that_is_not_an_armstrong_number(solution_script): | ||
var value = 9475 | ||
var expected = false | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_seven_digit_number_that_is_an_armstrong_number(solution_script): | ||
var value = 9926315 | ||
var expected = true | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|
||
|
||
func test_seven_digit_number_that_is_not_an_armstrong_number(solution_script): | ||
var value = 9926314 | ||
var expected = false | ||
return [solution_script.response(value), expected] | ||
return [solution_script.is_armstrong_number(value), expected] | ||
|