From decda5702447f5eb219891d348c30feb9428bbeb Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Mon, 13 Feb 2023 11:25:00 +0100 Subject: [PATCH] Test binding of optional tuple, not just tuple --- testmodules/options/test.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testmodules/options/test.nim b/testmodules/options/test.nim index fadbb44..c6fc8a0 100644 --- a/testmodules/options/test.nim +++ b/testmodules/options/test.nim @@ -198,20 +198,20 @@ suite "optionals": fail() test "=? binds and unpacks tuples with _": - if (_, b) =? ("test", 1): + if (_, b) =? some ("test", 1): check b == 1 else: fail() test "=? binds and unpacks tuples with named fields": - if (a, b) =? (desc: "test", id: 1): + if (a, b) =? some (desc: "test", id: 1): check a == "test" check b == 1 else: fail() test "=? binds variable to tuples with named fields": - if t =? (desc: "test", id: 1): + if t =? some (desc: "test", id: 1): check t.desc == "test" check t.id == 1 else: