From 8f7b26eafab5a2c3b3ff94bce25da065aa8a64d1 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Mon, 19 Oct 2026 15:34:10 +0300 Subject: [PATCH] name the encapsulation test after what it covers --- Makefile | 4 ++-- tests/sex-programs/{worked-example.sex => encapsulation.sex} | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) rename tests/sex-programs/{worked-example.sex => encapsulation.sex} (85%) diff --git a/Makefile b/Makefile index 8e40f4d..2ba0f4c 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,7 @@ SEX_TEST_PROGRAMS = c11 \ closures \ comments \ compound-literals \ + encapsulation \ feature-flags \ features \ fixpoint \ @@ -126,8 +127,7 @@ SEX_TEST_PROGRAMS = c11 \ type-shapes \ unicode \ unnamed-params \ - wildcards \ - worked-example + wildcards # Multi-module linking is checked end to end; see tests/modules/Makefile. check-modules: sexc diff --git a/tests/sex-programs/worked-example.sex b/tests/sex-programs/encapsulation.sex similarity index 85% rename from tests/sex-programs/worked-example.sex rename to tests/sex-programs/encapsulation.sex index 4ecc184..4a4308d 100644 --- a/tests/sex-programs/worked-example.sex +++ b/tests/sex-programs/encapsulation.sex @@ -3,9 +3,8 @@ "-5") (return 0) -;;; The worked example from Encapsulation.org, kept here so it stays -;;; true: a recursive sum, an inherent method on it, and a spec -;;; realized for it, which is every layer that is built at once. +;;; A recursive sum, an inherent method on it, and a spec realized for +;;; it: every layer of encapsulation in one program, built at once. (include stdio.h)