-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
94 additions
and
420 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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,24 @@ | ||
Feature: Cargo-bot emulator loading scripts | ||
|
||
Background: a bot exists | ||
Given I have a new cargobot | ||
|
||
Scenario: Start with subroutine 1 | ||
Given the script is "L R R R" | ||
When I load the script into the bot | ||
Then subroutine 1 should be "L R R R" | ||
And subroutine 2 should be empty | ||
|
||
Scenario: Add tokens as indicated by prog_N | ||
Given the script is "R prog_2 L prog_1 R prog_4 L" | ||
When I load the script into the bot | ||
Then subroutine 1 should be "R R" | ||
And subroutine 2 should be "L" | ||
And subroutine 3 should be empty | ||
And subroutine 4 should be "L" | ||
|
||
Scenario: Return to subroutine as indicated | ||
Given the script is "R prog_2 L L L L prog_1 R R" | ||
When I load the script into the bot | ||
Then subroutine 1 should be "R R R" | ||
And subroutine 2 should be "L L L L" |
2 changes: 1 addition & 1 deletion
2
features/chapter_1/solving.feature → features/emulator/solving.feature
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
features/chapter_1/subroutines.feature → features/emulator/subroutines.feature
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
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
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.