mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
15 lines
340 B
Rust
15 lines
340 B
Rust
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use gamedig::protocols::valve::ValveProtocol;
|
|
|
|
#[test]
|
|
fn tf2() {
|
|
let response = ValveProtocol::query("5.15.202.107", 27015);
|
|
match response {
|
|
Err(_) => println!("fuck"),
|
|
Ok(r) => println!("{}", r.name)
|
|
}
|
|
assert_eq!(4, 4);
|
|
}
|
|
}
|