Skip to content

Added match_text_output tutorial validation method #192

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

Merged
merged 1 commit into from
Oct 4, 2018

Conversation

adamcarheden
Copy link

This PR lets tutorials provide feedback by matching the text output of the user's program. This will be much simpler for tutorial authors than writing code and will facilitate the tutorial editor UI I'm also working on. The new hello.cwct card demonstrates the feature in step 4.

break;
case cwc.ui.TutorialValidator.Type.MATCH_TEXT_OUTPUT:
this.validateByMatchTextOutput_(validate['value'],
'message' in validate && typeof validate['message'] == 'string' ?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing spaces not allowed.

case cwc.ui.TutorialValidator.Type.MATCH_TEXT_OUTPUT:
this.validateByMatchTextOutput_(validate['value'],
'message' in validate && typeof validate['message'] == 'string' ?
validate['message'] : 'Great Job!');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected tab character .

@adamcarheden
Copy link
Author

Mistakenly omitted the file name last last time I committed before pushing. Linter changes should now be fixed.

@MarkusBordihn MarkusBordihn merged commit 67c0786 into google:master Oct 4, 2018
@adamcarheden adamcarheden deleted the text-match branch June 17, 2019 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants