Added crate feature, fixed docs, added examples and tests

This commit is contained in:
famfo 2021-11-12 21:31:10 +01:00 committed by Yash Karandikar
parent 6ddf52915e
commit d06e7650bf
Signed by: karx
GPG key ID: A794DA2529474BA5
2 changed files with 23 additions and 1 deletions

7
.gitignore vendored
View file

@ -1 +1,6 @@
/target
target/
examples/basic-config/target/
examples/config-from-toml/target/
examples/non-tls-irc/target/
Cargo.lock

17
tests/basic-connection.rs Normal file
View file

@ -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(())
}