### ----------------------------------------------------
### -- EventSource::Server
### -- Licenses: Artistic-2.0
### -- Authors: Jonathan Stowe <jns+gh@gellyfish.co.uk>
### -- File: t/030-event.t
### ----------------------------------------------------
#!/usr/bin/env raku

use v6;

use Test;

use EventSource::Server;

my $event = EventSource::Server::Event.new(type => 'foo', data => "a\nb\nc");

is $event.Str, "event: foo\r\ndata: a\r\ndata: b\r\ndata: c\r\n\r\n", "got the expected data";

done-testing();


