diff --git a/.gitignore b/.gitignore index ea8c4bf..6f0d12c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -/target +target/ +examples/basic-config/target/ +examples/config-from-toml/target/ +examples/non-tls-irc/target/ +Cargo.lock + diff --git a/tests/basic-connection.rs b/tests/basic-connection.rs new file mode 100644 index 0000000..0e798fa --- /dev/null +++ b/tests/basic-connection.rs @@ -0,0 +1,17 @@ +use circe::{Client, Config}; + +#[test] +fn connect() -> Result<(), std::io::Error> { + let config = Config::new( + vec![""], + "karx.xyz", + Some("+B"), + Some("circe-tests"), + 6697, + "circe-tests", + ); + let mut client = Client::new(config).unwrap(); + client.identify().unwrap(); + + Ok(()) +}