From 6ccb74419f931fe9e6adf665f282f577ef8ae0b2 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 13 Feb 2023 11:24:31 +0100 Subject: [PATCH] Use ? instead of Option[] in tests --- testmodules/options/test.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testmodules/options/test.nim b/testmodules/options/test.nim index 558e758..fadbb44 100644 --- a/testmodules/options/test.nim +++ b/testmodules/options/test.nim @@ -180,7 +180,7 @@ suite "optionals": fail() test "=? binds and unpacks tuples returned from proc": - proc returnsTuple(): Option[tuple[name: string, id: int]] = some ("test", 1) + proc returnsTuple(): ?tuple[name: string, id: int] = some ("test", 1) if (a, b) =? returnsTuple(): check a == "test" @@ -189,7 +189,7 @@ suite "optionals": fail() test "=? binds and unpacks tuples returned from proc with unnamed fields": - proc returnsTuple(): Option[(string, int,)] = some ("test", 1,) + proc returnsTuple(): ?(string, int,) = some ("test", 1,) if (a, b,) =? returnsTuple(): check a == "test"