Testing
← All posts2 posts
- About 98% of tests passed; a quarter of requests matched
Anthropic's Rust rewrite of its Messages API passed about 98% of its ported tests while only about a quarter of real inputs matched the old code.
- Testing: How to actually write tests?
Write tests in Laravel using PHPUnit and the Given-When-Then pattern. I also explain how to use the “Red-Green-Refactor” approach with TDD.