From 12346c35f827276bf8557b78d3203df68909c942 Mon Sep 17 00:00:00 2001 From: Hojun-Cho Date: Wed, 10 Jun 2026 13:27:12 +0900 Subject: [PATCH] lib/test: rename dotted-self-import tests to _test (#16 PREP-a2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit package L + import P.L is self-import in Go terms regardless of path spelling (the parser drops the dotted prefix); the text-level import-string!=package-name comparison hid these 3 from the PREP-a set. All three verified black-box (qualifier-only exported-API use) — plain rename, dotted imports kept as legit cross-package. --- lib/crypto/sha256/sha256_test.ww | 2 +- lib/encoding/utf8/utf8test.ww | 2 +- lib/math/checked/checked_test.ww | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/crypto/sha256/sha256_test.ww b/lib/crypto/sha256/sha256_test.ww index d734ccea..4e593ffc 100644 --- a/lib/crypto/sha256/sha256_test.ww +++ b/lib/crypto/sha256/sha256_test.ww @@ -8,7 +8,7 @@ // the rest of the 9xx stdlib tests; the non-zero exit pinpoints the // failing case. Expected digests come through the (separately tested) // hex.decodestr so the vectors stay readable. -package sha256; +package sha256_test; import bytes; import crypto.sha256; diff --git a/lib/encoding/utf8/utf8test.ww b/lib/encoding/utf8/utf8test.ww index 62f6b711..46b07243 100644 --- a/lib/encoding/utf8/utf8test.ww +++ b/lib/encoding/utf8/utf8test.ww @@ -3,7 +3,7 @@ // then-fail()-with-+10 pattern as hex / base32 / time tests: // non-zero exit pinpoints the failing scenario. -package utf8; +package utf8_test; import bytes; import encoding.utf8; diff --git a/lib/math/checked/checked_test.ww b/lib/math/checked/checked_test.ww index af7836fe..9f96fa67 100644 --- a/lib/math/checked/checked_test.ww +++ b/lib/math/checked/checked_test.ww @@ -1,4 +1,4 @@ -package checked; +package checked_test; // Directory import pulls both checked.ww and saturating.ww (the two // files of this module); a bare `import checked` would resolve only to