From c409d48804f39ba5160796baea342e89c41dc847 Mon Sep 17 00:00:00 2001 From: Martin Hebnes Pedersen Date: Sat, 30 Dec 2023 10:13:24 +0100 Subject: [PATCH] Support and / - `, + Expect: `Subj: //WL2K R/ / - `, + Answer: func(s Select) Option { return s.Options[0] }, + }, + } + for i, tt := range tests { + t.Run(fmt.Sprint(i), func(t *testing.T) { + got := promptSelects(tt.In, tt.Answer) + if got != tt.Expect { + t.Errorf("Expected %q, got %q", tt.Expect, got) + } + }) + } +}