From ed31588e62f794ad178490021a3136b0e6c51f57 Mon Sep 17 00:00:00 2001 From: "niten\" (aider)" Date: Sun, 8 Jun 2025 09:56:40 -0700 Subject: [PATCH] test: Add tests for utils functions in utils_test.clj --- test/milquetoast/utils_test.clj | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/milquetoast/utils_test.clj b/test/milquetoast/utils_test.clj index e69de29..5a350e0 100644 --- a/test/milquetoast/utils_test.clj +++ b/test/milquetoast/utils_test.clj @@ -0,0 +1,20 @@ +(ns milquetoast.utils-test + (:require [clojure.test :refer :all] + [milquetoast.utils :as utils])) + +(deftest test-parallelism + (testing "parallelism" + (is (integer? (utils/parallelism))))) + +(deftest test-pipe + (testing "pipe" + (let [in (chan) + out (utils/pipe in (map inc))] + (>!! in 1) + (is (= 2 (