Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.25 KB

File metadata and controls

47 lines (35 loc) · 1.25 KB

Token Counting Tool - Test Cases

This file contains test content for the count_tokens MCP tool.

Test Content 1: Simple Text

Hello, world! This is a simple test of the token counting functionality. The quick brown fox jumps over the lazy dog.

Test Content 2: Code Sample

function calculateSum(a: number, b: number): number {
  return a + b;
}

const result = calculateSum(5, 10);
console.log(result);

Test Content 3: Longer Text

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Test Content 4: JSON Data

{
  "name": "Token Counter Test",
  "version": "1.0.0",
  "description": "Testing token counting with various content types",
  "features": [
    "Direct text counting",
    "File-based counting",
    "Line range support",
    "Multiple model support"
  ]
}

End of Test File