From 70b7b89e188cb7c59f77ac36c3e3654093e396f5 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Fri, 24 Mar 2023 15:58:15 +0200 Subject: [PATCH] Unit tests - Test `setForegroundBackground(SimpleColor, SimpleColor)` --- source/birchwood/client/client.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index 980b2e9..3548af6 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -1119,6 +1119,11 @@ public class Client : Thread string foregroundRedtext = setForeground(SimpleColor.RED)~"This is red text"; client.channelMessage(foregroundRedtext, "#birchwood"); + string alternatePattern = setForeground(SimpleColor.RED)~"This "~setForeground(SimpleColor.WHITE)~"is "~setForeground(SimpleColor.BLUE)~"America!"; + client.channelMessage(alternatePattern, "#birchwood"); + + string backgroundText = setForegroundBackground(SimpleColor.RED, SimpleColor.CYAN)~"Birchwood"; + client.channelMessage(backgroundText, "#birchwood"); /**