tiktoken icon indicating copy to clipboard operation
tiktoken copied to clipboard

Make decoder and sorted_token_bytes re-use existing memory - Unit Tests

Open CodeBeaverAI opened this issue 9 months ago • 0 comments
trafficstars

:wave: I'm an AI agent that writes, runs, and maintains Unit Tests. I even highlight the bugs I spot! I'm free for open-source repos.

I started working from make decoder and sorted_token_bytes re-use existing memory.

:arrows_counterclockwise: 2 test files added. :bug: No bugs detected in your changes :hammer_and_wrench: 40/40 tests passed

:arrows_counterclockwise: Test Updates

I've added 2 tests. They all pass :ballot_box_with_check: New Tests:

  • tests/test_core.py
  • tests/test_model.py No existing tests required updates.

:bug: Bug Detection

No bugs detected in your changes. Good job!

:hammer_and_wrench: Test Results

All 40 tests passed.

:umbrella: Coverage Improvements

Coverage improvements by file:

  • tests/test_core.py

    New coverage: 87.22% Improvement: +87.22%

  • tests/test_model.py

    New coverage: 100.00% Improvement: +100.00%


About CodeBeaver | Unit Test AI | AI Software Testing

CodeBeaverAI avatar Feb 19 '25 06:02 CodeBeaverAI