docs: add code snippets for workbench test cases#111
Open
gn00295120 wants to merge 2 commits intoanthropics:masterfrom
Open
docs: add code snippets for workbench test cases#111gn00295120 wants to merge 2 commits intoanthropics:masterfrom
gn00295120 wants to merge 2 commits intoanthropics:masterfrom
Conversation
Added actual code examples for the Ruby and C# test cases mentioned in the 'Let's add in two new test cases' step. Previously, these were only shown in screenshots, making it difficult for students to follow along. Changes: - Added Ruby code example (Person class with birthday method) - Added C# code example (simple chicken count program) - Students can now copy-paste these examples into the workbench Fixes anthropics#96 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR enhances the workbench evaluations documentation by adding complete, copy-pastable code examples for Ruby and C# test cases that were previously only visible in screenshots.
Changes:
- Added a Ruby code example demonstrating a Person class with attributes, methods, and class methods
- Added a C# code example showing a simple Program class with console output
- Replaced screenshot-only documentation with markdown-formatted code snippets
Comments suppressed due to low confidence (2)
prompt_evaluations/02_workbench_evals/02_workbench_evals.ipynb:1
- The markdown cell source contains an invalid
<cell_type>markdown</cell_type>tag at the beginning and end. In Jupyter notebook JSON format, the cell type is specified by thecell_typefield at the cell level, not as inline tags within the source content. These tags should be removed from the source string.
prompt_evaluations/02_workbench_evals/02_workbench_evals.ipynb:1 - The Jupyter notebook source field should be an array of strings (one per line) rather than a single string with embedded newlines. This follows the standard Jupyter notebook format and improves readability and version control diffs. Split the content into an array where each line is a separate string element.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixed duplicate cell_type tags and added language identifiers to code blocks for better syntax highlighting in the workbench cookbook. Changes: - Removed duplicate <cell_type>markdown</cell_type> tags - Added csharp language tags to code blocks - Improves rendering and syntax highlighting Fixes formatting issues in PR anthropics#111 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #96
Description
Added actual code examples for the Ruby and C# test cases that were previously
only shown in screenshots. This makes it easier for students to follow along
with the lesson by allowing them to copy-paste the examples.
Changes
Benefits
Testing