Skip to content

Commit

Permalink
repair tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Sep 19, 2023
1 parent 6bbdb89 commit ae18008
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions Tests/TwitchIRCTests/IncomingMessageTests/UserNoticeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues1() throws {
let string = #"@badge-info=;badges=staff/1,broadcaster/1,turbo/1;color=#008000;display-name=ronni;emotes=;id=db25007f-7a18-43eb-9379-80131e44d633;login=ronni;mod=0;msg-id=resub;msg-param-cumulative-months=6;msg-param-streak-months=2;msg-param-should-share-streak=1;msg-param-sub-plan=Prime;msg-param-sub-plan-name=Prime;room-id=1337;subscriber=1;system-msg=ronni\shas\ssubscribed\sfor\s6\smonths!;tmi-sent-ts=1507246572675;turbo=1;user-id=1337;user-type=staff :tmi.twitch.tv USERNOTICE #dallas :Great stream -- keep it up!"#
let string = #"@badge-info=;badges=staff/1,broadcaster/1,turbo/1;color=#008000;display-name=ronni;emotes=;id=db25007f-7a18-43eb-9379-80131e44d633;login=ronni;mod=0;msg-id=resub;msg-param-cumulative-months=6;msg-param-streak-months=2;msg-param-should-share-streak=1;msg-param-sub-plan=Prime;msg-param-sub-plan-name=Prime;room-id=1337;subscriber=1;system-msg=ronni\shas\ssubscribed\sfor\s6\smonths!;tmi-sent-ts=1507246572675;turbo=1;user-id=1337;user-type=staff;vip=0 :tmi.twitch.tv USERNOTICE #dallas :Great stream -- keep it up!"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "dallas")
Expand Down Expand Up @@ -60,8 +60,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues2() throws {
let string = #"@badge-info=;badges=staff/1,premium/1;color=#0000FF;display-name=TWW2;emotes=;id=e9176cd8-5e22-4684-ad40-ce53c2561c5e;login=tww2;mod=0;msg-id=subgift;msg-param-months=1;msg-param-recipient-display-name=Mr_Woodchuck;msg-param-recipient-id=89614178;msg-param-recipient-user-name=mr_woodchuck;msg-param-sub-plan-name=House\sof\sNyoro~n;msg-param-sub-plan=1000;room-id=19571752;subscriber=0;system-msg=TWW2\sgifted\sa\sTier\s1\ssub\sto\sMr_Woodchuck!;tmi-sent-ts=1521159445153;turbo=0;user-id=13405587;user-type=staff :tmi.twitch.tv USERNOTICE #forstycup"#
let string = #"@badge-info=;badges=staff/1,premium/1;color=#0000FF;display-name=TWW2;emotes=;id=e9176cd8-5e22-4684-ad40-ce53c2561c5e;login=tww2;mod=0;msg-id=subgift;msg-param-months=1;msg-param-recipient-display-name=Mr_Woodchuck;msg-param-recipient-id=89614178;msg-param-recipient-user-name=mr_woodchuck;msg-param-sub-plan-name=House\sof\sNyoro~n;msg-param-sub-plan=1000;room-id=19571752;subscriber=0;system-msg=TWW2\sgifted\sa\sTier\s1\ssub\sto\sMr_Woodchuck!;tmi-sent-ts=1521159445153;turbo=0;user-id=13405587;user-type=staff;vip=0 :tmi.twitch.tv USERNOTICE #forstycup"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "forstycup")
Expand Down Expand Up @@ -101,8 +101,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues3() throws {
let string = #"@badge-info=;badges=broadcaster/1,subscriber/6;color=;display-name=qa_subs_partner;emotes=;flags=;id=b1818e3c-0005-490f-ad0a-804957ddd760;login=qa_subs_partner;mod=0;msg-id=anonsubgift;msg-param-months=3;msg-param-recipient-display-name=TenureCalculator;msg-param-recipient-id=135054130;msg-param-recipient-user-name=tenurecalculator;msg-param-sub-plan-name=t111;msg-param-sub-plan=1000;room-id=196450059;subscriber=1;system-msg=An\sanonymous\suser\sgifted\sa\sTier\s1\ssub\sto\sTenureCalculator!\s;tmi-sent-ts=1542063432068;turbo=0;user-id=196450059;user-type= :tmi.twitch.tv USERNOTICE #qa_subs_partner"#
let string = #"@badge-info=;badges=broadcaster/1,subscriber/6;color=;display-name=qa_subs_partner;emotes=;flags=;id=b1818e3c-0005-490f-ad0a-804957ddd760;login=qa_subs_partner;mod=0;msg-id=anonsubgift;msg-param-months=3;msg-param-recipient-display-name=TenureCalculator;msg-param-recipient-id=135054130;msg-param-recipient-user-name=tenurecalculator;msg-param-sub-plan-name=t111;msg-param-sub-plan=1000;room-id=196450059;subscriber=1;system-msg=An\sanonymous\suser\sgifted\sa\sTier\s1\ssub\sto\sTenureCalculator!\s;tmi-sent-ts=1542063432068;turbo=0;user-id=196450059;vip=0;user-type= :tmi.twitch.tv USERNOTICE #qa_subs_partner"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "qa_subs_partner")
Expand Down Expand Up @@ -142,8 +142,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues4() throws {
let string = #"@badge-info=;badges=turbo/1;color=#9ACD32;display-name=TestChannel;emotes=;id=3d830f12-795c-447d-af3c-ea05e40fbddb;login=testchannel;mod=0;msg-id=raid;msg-param-displayName=TestChannel;msg-param-login=testchannel;msg-param-viewerCount=15;room-id=56379257;subscriber=0;system-msg=15\sraiders\sfrom\sTestChannel\shave\sjoined\n!;tmi-sent-ts=1507246572675;turbo=1;user-id=123456;user-type= :tmi.twitch.tv USERNOTICE #othertestchannel"#
let string = #"@badge-info=;badges=turbo/1;color=#9ACD32;display-name=TestChannel;emotes=;id=3d830f12-795c-447d-af3c-ea05e40fbddb;login=testchannel;mod=0;msg-id=raid;msg-param-displayName=TestChannel;msg-param-login=testchannel;msg-param-viewerCount=15;room-id=56379257;subscriber=0;system-msg=15\sraiders\sfrom\sTestChannel\shave\sjoined\n!;tmi-sent-ts=1507246572675;turbo=1;user-id=123456;user-type=;vip=0 :tmi.twitch.tv USERNOTICE #othertestchannel"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "othertestchannel")
Expand Down Expand Up @@ -171,8 +171,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues5() throws {
let string = #"@badge-info=;badges=;color=;display-name=SevenTest1;emotes=30259:0-6;id=37feed0f-b9c7-4c3a-b475-21c6c6d21c3d;login=seventest1;mod=0;msg-id=ritual;msg-param-ritual-name=new_chatter;room-id=6316121;subscriber=0;system-msg=Seventoes\sis\snew\shere!;tmi-sent-ts=1508363903826;turbo=0;user-id=131260580;user-type= :tmi.twitch.tv USERNOTICE #seventoes :HeyGuys"#
let string = #"@badge-info=;badges=;color=;display-name=SevenTest1;emotes=30259:0-6;id=37feed0f-b9c7-4c3a-b475-21c6c6d21c3d;login=seventest1;mod=0;msg-id=ritual;msg-param-ritual-name=new_chatter;room-id=6316121;subscriber=0;system-msg=Seventoes\sis\snew\shere!;tmi-sent-ts=1508363903826;turbo=0;user-id=131260580;user-type=;vip=1 :tmi.twitch.tv USERNOTICE #seventoes :HeyGuys"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "seventoes")
Expand All @@ -197,8 +197,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues6() throws {
let string = #"@badge-info=subscriber/1;badges=vip/1,subscriber/0,bits/100;color=#8A2BE2;display-name=pazza_cr4;emotes=;flags=;id=41ab23ee-4728-4f8b-9d72-8fa92300cc94;login=pazza_cr4;mod=0;msg-id=communitypayforward;msg-param-prior-gifter-anonymous=false;msg-param-prior-gifter-display-name=dillydilby;msg-param-prior-gifter-id=629935431;msg-param-prior-gifter-user-name=dillydilby;room-id=629935431;subscriber=1;system-msg=pazza_cr4\sis\spaying\sforward\sthe\sGift\sthey\sgot\sfrom\sdillydilby\sto\sthe\scommunity!;tmi-sent-ts=1642853857868;user-id=757980712;user-type= :tmi.twitch.tv USERNOTICE #dillydilby"#
let string = #"@badge-info=subscriber/1;badges=vip/1,subscriber/0,bits/100;color=#8A2BE2;display-name=pazza_cr4;emotes=;flags=;id=41ab23ee-4728-4f8b-9d72-8fa92300cc94;login=pazza_cr4;mod=0;msg-id=communitypayforward;msg-param-prior-gifter-anonymous=false;msg-param-prior-gifter-display-name=dillydilby;msg-param-prior-gifter-id=629935431;msg-param-prior-gifter-user-name=dillydilby;room-id=629935431;subscriber=1;system-msg=pazza_cr4\sis\spaying\sforward\sthe\sGift\sthey\sgot\sfrom\sdillydilby\sto\sthe\scommunity!;tmi-sent-ts=1642853857868;user-id=757980712;user-type=;vip=0 :tmi.twitch.tv USERNOTICE #dillydilby"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "dillydilby")
Expand Down Expand Up @@ -226,8 +226,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues7() throws {
let string = #"@badge-info=subscriber/13;badges=subscriber/12,glitchcon2020/1;color=#1E90FF;display-name=GissihatHunger;emotes=;flags=;id=4417af02-11f7-4da8-8118-8fc2913b841c;login=gissihathunger;mod=0;msg-id=standardpayforward;msg-param-prior-gifter-anonymous=false;msg-param-prior-gifter-display-name=Benenator_007;msg-param-prior-gifter-id=609956744;msg-param-prior-gifter-user-name=benenator_007;msg-param-recipient-display-name=cuteMaggi;msg-param-recipient-id=693345558;msg-param-recipient-user-name=cutemaggi;room-id=180980116;subscriber=1;system-msg=GissihatHunger\sis\spaying\sforward\sthe\sGift\sthey\sgot\sfrom\sBenenator_007\sto\scuteMaggi!;tmi-sent-ts=1642857017198;user-id=449423975;user-type= :tmi.twitch.tv USERNOTICE #carl_the_legend"#
let string = #"@badge-info=subscriber/13;badges=subscriber/12,glitchcon2020/1;color=#1E90FF;display-name=GissihatHunger;emotes=;flags=;id=4417af02-11f7-4da8-8118-8fc2913b841c;login=gissihathunger;mod=0;msg-id=standardpayforward;msg-param-prior-gifter-anonymous=false;msg-param-prior-gifter-display-name=Benenator_007;msg-param-prior-gifter-id=609956744;msg-param-prior-gifter-user-name=benenator_007;msg-param-recipient-display-name=cuteMaggi;msg-param-recipient-id=693345558;msg-param-recipient-user-name=cutemaggi;room-id=180980116;subscriber=1;system-msg=GissihatHunger\sis\spaying\sforward\sthe\sGift\sthey\sgot\sfrom\sBenenator_007\sto\scuteMaggi!;tmi-sent-ts=1642857017198;user-id=449423975;user-type=;vip=1 :tmi.twitch.tv USERNOTICE #carl_the_legend"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "carl_the_legend")
Expand Down Expand Up @@ -258,8 +258,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues8() throws {
let string = #"@badge-info=;badges=;color=;display-name=AnAnonymousGifter;emotes=;flags=;id=fdfebaac-e54e-44c1-b81c-95fa2f4f6c73;login=ananonymousgifter;mod=0;msg-id=subgift;msg-param-fun-string=FunStringFive;msg-param-gift-months=1;msg-param-goal-contribution-type=SUB_POINTS;msg-param-goal-current-contributions=181;msg-param-goal-description=Kochen\s+\s69;msg-param-goal-target-contributions=299;msg-param-goal-user-contributions=1;msg-param-months=4;msg-param-origin-id=21\sc2\sd1\s0d\sc9\s61\s69\sa0\s2c\s73\sad\s42\sad\s79\s60\s5e\s72\sa5\s33\s6b;msg-param-recipient-display-name=rtg_richy;msg-param-recipient-id=645584945;msg-param-recipient-user-name=rtg_richy;msg-param-sub-plan-name=Channel\sSubscription\s(dennisrlf_);msg-param-sub-plan=1000;room-id=506507314;subscriber=0;system-msg=An\sanonymous\suser\sgifted\sa\sTier\s1\ssub\sto\srtg_richy!\s;tmi-sent-ts=1643135914821;user-id=274598607;user-type= :tmi.twitch.tv USERNOTICE #dennisrlf_"#
let string = #"@badge-info=;badges=;color=;display-name=AnAnonymousGifter;emotes=;flags=;id=fdfebaac-e54e-44c1-b81c-95fa2f4f6c73;login=ananonymousgifter;mod=0;msg-id=subgift;msg-param-fun-string=FunStringFive;msg-param-gift-months=1;msg-param-goal-contribution-type=SUB_POINTS;msg-param-goal-current-contributions=181;msg-param-goal-description=Kochen\s+\s69;msg-param-goal-target-contributions=299;msg-param-goal-user-contributions=1;msg-param-months=4;msg-param-origin-id=21\sc2\sd1\s0d\sc9\s61\s69\sa0\s2c\s73\sad\s42\sad\s79\s60\s5e\s72\sa5\s33\s6b;msg-param-recipient-display-name=rtg_richy;msg-param-recipient-id=645584945;msg-param-recipient-user-name=rtg_richy;msg-param-sub-plan-name=Channel\sSubscription\s(dennisrlf_);msg-param-sub-plan=1000;room-id=506507314;subscriber=0;system-msg=An\sanonymous\suser\sgifted\sa\sTier\s1\ssub\sto\srtg_richy!\s;tmi-sent-ts=1643135914821;user-id=274598607;user-type=;vip=1 :tmi.twitch.tv USERNOTICE #dennisrlf_"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "dennisrlf_")
Expand Down Expand Up @@ -299,8 +299,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues9() throws {
let string = #"@badge-info=;badges=;color=;display-name=AnAnonymousGifter;emotes=;flags=;id=a05bcefe-bcae-4421-899a-c2ed087d3174;login=ananonymousgifter;mod=0;msg-id=subgift;msg-param-fun-string=FunStringOne;msg-param-gift-months=1;msg-param-gift-theme=lul;msg-param-months=2;msg-param-origin-id=e0\sbf\sa4\s8d\se8\s49\s72\s6e\s37\s1f\s32\s62\s6c\s98\s53\s45\sf1\s34\s15\s3e;msg-param-recipient-display-name=professorlive_cr;msg-param-recipient-id=214715951;msg-param-recipient-user-name=professorlive_cr;msg-param-sub-plan-name=Juicy;msg-param-sub-plan=1000;room-id=123721524;subscriber=0;system-msg=An\sanonymous\suser\sgifted\sa\sTier\s1\ssub\sto\sprofessorlive_cr!\s;tmi-sent-ts=1643495894080;user-id=274598607;user-type= :tmi.twitch.tv USERNOTICE #juicyj_cr"#
let string = #"@badge-info=;badges=;color=;display-name=AnAnonymousGifter;emotes=;flags=;id=a05bcefe-bcae-4421-899a-c2ed087d3174;login=ananonymousgifter;mod=0;msg-id=subgift;msg-param-fun-string=FunStringOne;msg-param-gift-months=1;msg-param-gift-theme=lul;msg-param-months=2;msg-param-origin-id=e0\sbf\sa4\s8d\se8\s49\s72\s6e\s37\s1f\s32\s62\s6c\s98\s53\s45\sf1\s34\s15\s3e;msg-param-recipient-display-name=professorlive_cr;msg-param-recipient-id=214715951;msg-param-recipient-user-name=professorlive_cr;msg-param-sub-plan-name=Juicy;msg-param-sub-plan=1000;room-id=123721524;subscriber=0;system-msg=An\sanonymous\suser\sgifted\sa\sTier\s1\ssub\sto\sprofessorlive_cr!\s;tmi-sent-ts=1643495894080;user-id=274598607;vip=1;user-type= :tmi.twitch.tv USERNOTICE #juicyj_cr"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "juicyj_cr")
Expand Down Expand Up @@ -340,8 +340,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues10() throws {
let string = #"@badge-info=subscriber/1;badges=subscriber/0,sub-gifter/1;color=#8422B2;display-name=ItsMeekz;emotes=;flags=;id=0f138c82-d842-4055-af48-f7a84a43461d;login=itsmeekz;mod=0;msg-id=primepaidupgrade;msg-param-sub-plan=1000;room-id=117855516;subscriber=1;system-msg=ItsMeekz\sconverted\sfrom\sa\sPrime\ssub\sto\sa\sTier\s1\ssub!;tmi-sent-ts=1643569662528;user-id=608094265;user-type= :tmi.twitch.tv USERNOTICE #domino_stein"#
let string = #"@badge-info=subscriber/1;badges=subscriber/0,sub-gifter/1;color=#8422B2;display-name=ItsMeekz;emotes=;flags=;id=0f138c82-d842-4055-af48-f7a84a43461d;login=itsmeekz;mod=0;msg-id=primepaidupgrade;msg-param-sub-plan=1000;room-id=117855516;subscriber=1;system-msg=ItsMeekz\sconverted\sfrom\sa\sPrime\ssub\sto\sa\sTier\s1\ssub!;tmi-sent-ts=1643569662528;vip=1;user-id=608094265;user-type= :tmi.twitch.tv USERNOTICE #domino_stein"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "domino_stein")
Expand All @@ -366,8 +366,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues11() throws {
let string = #"@badge-info=subscriber/44;badges=broadcaster/1,subscriber/3036,partner/1;color=#8A2BE2;display-name=Schlonsti;emotes=;flags=;id=0d011cb5-84c9-4abf-b469-905fa48d1e73;login=schlonsti;mod=0;msg-id=announcement;msg-param-color=PRIMARY;room-id=90968980;subscriber=1;system-msg=;tmi-sent-ts=1648760291007;user-id=90968980;user-type= :tmi.twitch.tv USERNOTICE #schlonsti :fehler"#
let string = #"@badge-info=subscriber/44;badges=broadcaster/1,subscriber/3036,partner/1;color=#8A2BE2;display-name=Schlonsti;emotes=;flags=;id=0d011cb5-84c9-4abf-b469-905fa48d1e73;login=schlonsti;mod=0;msg-id=announcement;msg-param-color=PRIMARY;room-id=90968980;subscriber=1;system-msg=;tmi-sent-ts=1648760291007;user-id=90968980;vip=1;user-type= :tmi.twitch.tv USERNOTICE #schlonsti :fehler"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "schlonsti")
Expand All @@ -392,8 +392,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues12() throws {
let string = #"@badge-info=;badges=;color=#DAA520;display-name=LF_patocarlo_papi;emotes=;flags=;id=9734d325-603f-42a8-a728-2032943d1786;login=lf_patocarlo_papi;mod=0;msg-id=midnightsquid;msg-param-amount=100;msg-param-currency=USD;msg-param-emote-id=emotesv2_630d12043c5d40dc97a1f8deac5842f1;msg-param-exponent=2;msg-param-is-highlighted=false;msg-param-pill-type=Success;room-id=473386056;subscriber=0;system-msg=LF_patocarlo_papi\\sCheered\\swith\\s$1.00;tmi-sent-ts=1664487028027;user-id=494211968;user-type= :tmi.twitch.tv USERNOTICE #jandrotc"#
let string = #"@badge-info=;badges=;color=#DAA520;display-name=LF_patocarlo_papi;emotes=;flags=;id=9734d325-603f-42a8-a728-2032943d1786;login=lf_patocarlo_papi;mod=0;msg-id=midnightsquid;msg-param-amount=100;msg-param-currency=USD;msg-param-emote-id=emotesv2_630d12043c5d40dc97a1f8deac5842f1;msg-param-exponent=2;msg-param-is-highlighted=false;msg-param-pill-type=Success;room-id=473386056;subscriber=0;system-msg=LF_patocarlo_papi\\sCheered\\swith\\s$1.00;tmi-sent-ts=1664487028027;user-id=494211968;vip=1;user-type= :tmi.twitch.tv USERNOTICE #jandrotc"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "jandrotc")
Expand Down Expand Up @@ -423,8 +423,8 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues13() throws {
let string = #"@badge-info=;badges=premium/1;color=#9ACD32;display-name=LukeCaboom;emotes=;flags=;id=479defa1-dac0-47e6-b308-a19c2a8b64cd;login=lukecaboom;mod=0;msg-id=charitydonation;msg-param-charity-name=Wounded\\sWarrior\\sProject;msg-param-donation-amount=500;msg-param-donation-currency=USD;msg-param-exponent=2;room-id=18798485;subscriber=0;system-msg=LukeCaboom:\\sDonated\\sUSD\\s5\\sto\\ssupport\\sWounded\\sWarrior\\sProject;tmi-sent-ts=1664727225702;user-id=514556756;user-type= :tmi.twitch.tv USERNOTICE #fxyen"#
let string = #"@badge-info=;badges=premium/1;color=#9ACD32;display-name=LukeCaboom;emotes=;flags=;id=479defa1-dac0-47e6-b308-a19c2a8b64cd;login=lukecaboom;mod=0;msg-id=charitydonation;msg-param-charity-name=Wounded\\sWarrior\\sProject;msg-param-donation-amount=500;msg-param-donation-currency=USD;msg-param-exponent=2;room-id=18798485;subscriber=0;system-msg=LukeCaboom:\\sDonated\\sUSD\\s5\\sto\\ssupport\\sWounded\\sWarrior\\sProject;tmi-sent-ts=1664727225702;user-id=514556756;vip=1;user-type= :tmi.twitch.tv USERNOTICE #fxyen"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

XCTAssertEqual(un.channel, "fxyen")
Expand Down Expand Up @@ -455,7 +455,7 @@ final class UserNoticeTests: XCTestCase {
}

func testParsedValues14() throws {
let string = #"@badge-info=founder/12;badges=moderator/1,founder/0,hype-train/1;color=#0000FF;display-name=metalkiller354;emotes=;flags=;id=aa1d37a5-e0d0-40b2-b374-ae779896a6f9;login=metalkiller354;mod=1;msg-id=viewermilestone;msg-param-category=watch-streak;msg-param-id=f05b2393-3bee-451c-bcb2-d12ea06781d7;msg-param-value=3;room-id=442187430;subscriber=1;system-msg=metalkiller354\\swatched\\s3\\sconsecutive\\sstreams\\sthis\\smonth\\sand\\ssparked\\sa\\swatch\\sstreak!;tmi-sent-ts=1678130127599;user-id=224637183;user-type=mod :tmi.twitch.tv USERNOTICE #tryaz"#
let string = #"@badge-info=founder/12;badges=moderator/1,founder/0,hype-train/1;color=#0000FF;display-name=metalkiller354;emotes=;flags=;id=aa1d37a5-e0d0-40b2-b374-ae779896a6f9;login=metalkiller354;mod=1;msg-id=viewermilestone;msg-param-category=watch-streak;msg-param-id=f05b2393-3bee-451c-bcb2-d12ea06781d7;msg-param-value=3;room-id=442187430;subscriber=1;system-msg=metalkiller354\\swatched\\s3\\sconsecutive\\sstreams\\sthis\\smonth\\sand\\ssparked\\sa\\swatch\\sstreak!;tmi-sent-ts=1678130127599;user-id=224637183;vip=1;user-type=mod :tmi.twitch.tv USERNOTICE #tryaz"#

let un: UserNotice = try TestUtils.parseAndUnwrap(string: string)

Expand Down

0 comments on commit ae18008

Please sign in to comment.