From f5c905ebd892e87f113662cf65aa73c762e96205 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 16 Aug 2020 12:00:18 +0200 Subject: [PATCH] test/gc: cons. --- src/test/gc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/gc.c b/src/test/gc.c index 18fc0356..6255f8ab 100644 --- a/src/test/gc.c +++ b/src/test/gc.c @@ -95,6 +95,18 @@ test_number () test_gc ("number"); } +void +test_cons () +{ + test_setup (); + SCM a = make_number (42); + SCM d = make_number (101); + cons (a, d); + + g_free = g_symbol_max + M2_CELL_SIZE; + test_gc ("cons"); +} + int main (int argc, char **argv, char **envp) { @@ -117,6 +129,7 @@ main (int argc, char **argv, char **envp) test_empty (); test_number (); + test_cons (); return 0; }