Skip to content

Commit

Permalink
Update armstrong_numbers_test.gd
Browse files Browse the repository at this point in the history
fix function name
  • Loading branch information
glaxxie committed Mar 6, 2024
1 parent 49d5a8c commit 62f5765
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions exercises/practice/armstrong-numbers/armstrong_numbers_test.gd
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]

0 comments on commit 62f5765

Please sign in to comment.