Skip to content

docs: add code snippets for workbench test cases#111

Open
gn00295120 wants to merge 2 commits intoanthropics:masterfrom
gn00295120:fix/workbench-code-snippets-96
Open

docs: add code snippets for workbench test cases#111
gn00295120 wants to merge 2 commits intoanthropics:masterfrom
gn00295120:fix/workbench-code-snippets-96

Conversation

@gn00295120
Copy link

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

  • Added Ruby code example: Person class with methods
  • Added C# code example: Simple Program class
  • Code snippets are now available in markdown format

Benefits

  • Students can now copy-paste instead of typing manually
  • Screenshots cut off code - now complete code is available
  • Improves learning experience

Testing

  • Code examples match what's shown in the screenshots
  • Both examples are syntactically correct

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>
Copilot AI review requested due to automatic review settings January 15, 2026 03:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 the cell_type field 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code snippets needed for 02_workbench_evals

2 participants