-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rabestro/develop
Update sequence numbers and add new Armstrong number tests
- Loading branch information
Showing
7 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
...cism-api-tests/Armstrong Numbers/A seven digit number that is not an Armstrong number.bru
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
2 changes: 1 addition & 1 deletion
2
exercism-api-tests/Armstrong Numbers/Error when number is not specified.bru
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,7 +1,7 @@ | ||
meta { | ||
name: Error when number is not specified | ||
type: http | ||
seq: 5 | ||
seq: 10 | ||
} | ||
|
||
get { | ||
|
19 changes: 19 additions & 0 deletions
19
exercism-api-tests/Armstrong Numbers/Four-digit number that is an Armstrong number.bru
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
meta { | ||
name: Four-digit number that is an Armstrong number | ||
type: http | ||
seq: 6 | ||
} | ||
|
||
get { | ||
url: {{host}}/api/armstrong-numbers?number=9474 | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
number: 9474 | ||
} | ||
|
||
assert { | ||
res.body.isArmstrongNumber: isTruthy | ||
} |
19 changes: 19 additions & 0 deletions
19
exercism-api-tests/Armstrong Numbers/Four-digit number that is not an Armstrong number.bru
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
meta { | ||
name: Four-digit number that is not an Armstrong number | ||
type: http | ||
seq: 7 | ||
} | ||
|
||
get { | ||
url: {{host}}/api/armstrong-numbers?number=9475 | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
number: 9475 | ||
} | ||
|
||
assert { | ||
res.body.isArmstrongNumber: isFalsy | ||
} |
19 changes: 19 additions & 0 deletions
19
exercism-api-tests/Armstrong Numbers/Three-digit number that is an Armstrong number.bru
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
meta { | ||
name: Three-digit number that is an Armstrong number | ||
type: http | ||
seq: 4 | ||
} | ||
|
||
get { | ||
url: {{host}}/api/armstrong-numbers?number=153 | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
number: 153 | ||
} | ||
|
||
assert { | ||
res.body.isArmstrongNumber: isTruthy | ||
} |
19 changes: 19 additions & 0 deletions
19
exercism-api-tests/Armstrong Numbers/Three-digit number that is not an Armstrong number.bru
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
meta { | ||
name: Three-digit number that is not an Armstrong number | ||
type: http | ||
seq: 5 | ||
} | ||
|
||
get { | ||
url: {{host}}/api/armstrong-numbers?number=100 | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
number: 100 | ||
} | ||
|
||
assert { | ||
res.body.isArmstrongNumber: isFalsy | ||
} |