From b90ee62b988a305d8b8fd0e32ffd96cb9de3c225 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 12 Aug 2024 15:46:45 +0200 Subject: [PATCH] Improved out of memory test --- tests/programs/out-of-memory.q | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/programs/out-of-memory.q b/tests/programs/out-of-memory.q index e9ead5b..4fe1fcd 100644 --- a/tests/programs/out-of-memory.q +++ b/tests/programs/out-of-memory.q @@ -1,6 +1,6 @@ import mem main() { - address := mem.alloc(1024 * 1024 * 1024 * 1024) - assert address < 0 || address == 12 + address := mem.alloc(1024 * 1024 * 1024 * 1024 * 1024) + assert address == -12 || address == 12 } \ No newline at end of file