-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove say command one message limit #2316
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
79d3052
Remove say command one message limit
xsebek 537a049
saybot demo
kostmo 1df00df
!fixup: remove unused ocde
xsebek 3d15abf
Update say test scenario
xsebek 68cf669
Improve test
xsebek 04ed840
Specify that it is not creative mode test
xsebek 0a5bead
simplify
byorgey 518b9d3
Merge branch 'main' into task/xsebek/simplify-say
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
61 changes: 61 additions & 0 deletions
61
data/scenarios/Testing/1592-shared-template-robot-say-logs.yaml
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,61 @@ | ||
version: 1 | ||
name: Logs from same-template robots | ||
creative: false | ||
description: | | ||
Logs from different robots generated from the same template. | ||
|
||
The objective checks that base hears one message each tick, | ||
afterwards the integration test checks that all messages | ||
are present in the base log. | ||
objectives: | ||
- goal: | ||
- Please `grab` the `token`{=entity} if you hear what you expected. | ||
condition: | | ||
as base { has "token" } | ||
solution: | | ||
s <- listen; | ||
if (s == "Hello from (2, -2)!") { | ||
s <- listen; | ||
if (s == "Hello from (3, -2)!") { | ||
s <- listen; | ||
if (s == "Hello from (4, -2)!") { | ||
grab; say "OK!" | ||
} {say $ "3: Not what I expected: " ++ s} | ||
} {say $ "2: Not what I expected: " ++ s} | ||
} {say $ "1: Not what I expected: " ++ s} | ||
robots: | ||
- name: base | ||
devices: | ||
- logger | ||
- hearing aid | ||
- comparator | ||
- branch predictor | ||
- string | ||
- grabber | ||
- name: saybot | ||
system: true | ||
display: | ||
invisible: false | ||
attr: blue | ||
program: | | ||
loc <- whereami; | ||
wait $ fst loc; | ||
say ("Hello from " ++ format loc ++ "!"); | ||
entities: | ||
- name: token | ||
display: | ||
char: 'W' | ||
properties: | ||
- known | ||
- pickable | ||
description: | ||
- Signals a success. | ||
world: | ||
palette: | ||
'.': [grass] | ||
'B': [grass, token, base] | ||
's': [grass, null, saybot] | ||
map: | | ||
B...s | ||
...ss | ||
..sss |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is simpler? (It would have been simpler before, too...)