<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Testing on Samarthya</title><link>https://samarthya.me/tags/testing/</link><description>Recent content in Testing on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Sat, 07 Nov 2026 18:22:00 -0500</lastBuildDate><atom:link href="https://samarthya.me/tags/testing/index.xml" rel="self" type="application/rss+xml"/><item><title>Testing code an AI wrote, part 1: read it before you run it</title><link>https://samarthya.me/posts/testing-ai-code-1-read-before-you-run/</link><pubDate>Sat, 07 Nov 2026 18:22:00 -0500</pubDate><guid>https://samarthya.me/posts/testing-ai-code-1-read-before-you-run/</guid><description>&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;&#10; You would not plug in a USB stick you found in a car park. Code a model wrote for you deserves the same caution,&#10;especially when its job is deleting files. Before running anything, I read the lines that can do damage.&#10;&lt;/div&gt;&#10;&#10;&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="low"&#10; alt="The audit as a funnel: 23 generated files and 2,114 lines of Python, 13 search hits for delete or move calls, 11 real calls, all inside two functions, reachable only from the clean and restore commands"&#10; src="https://samarthya.me/posts/testing-ai-code-1-read-before-you-run/overview.svg"&#10; &gt;&lt;figcaption&gt;From 2,114 lines to two functions worth worrying about.&lt;/figcaption&gt;&lt;/figure&gt;&#10;&#10;&lt;h2 class="relative group"&gt;The app, and why it deserves suspicion&#10; &lt;div id="the-app-and-why-it-deserves-suspicion" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-app-and-why-it-deserves-suspicion" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;In &lt;a href="https://samarthya.me/posts/ollama-vs-colibri-beginners-guide/" &gt;an earlier post&lt;/a&gt; I ran Qwen3-Coder 30B locally&#10;through two engines, Colibri and Ollama. This time I gave it a bigger job: a 200-line specification for&#10;&lt;strong&gt;dupfind&lt;/strong&gt;, a command-line tool that finds duplicate and near-duplicate files and folders, then helps clean them up.&#10;It has three commands:&lt;/p&gt;</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://samarthya.me/posts/testing-ai-code-1-read-before-you-run/feature.png"/></item></channel></rss>