Posts

Showing posts from November, 2026

Today's Episode of Testing with AI

One of the good things in the AI era is that more and more code is now actually being tested. AI writes code, AI writes tests, everyone lived happily ever after. Or maybe not... I needed to implement the SHA256 algorithm, and naturally such algorithms need to be well-tested. And nowadays, the fastest way to get some test vectors is to ask AI. And this is what it gave me: Input SHA-256 digest (hex) (empty string) e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 abc ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad The quick brown fox jumps over the lazy dog d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 The quick brown fox jumps over the lazy dog. ef537f25c895bfa782526529a9b63d97aa631564d5d789c2b765448c8635fb6c aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (63 × 'a') 7d3e74a05d7db15bce4ad9ec0658ea98e3f06eeecf16b4c6fff2da457ddc2f34 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...