changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/net/src/tests.rs

changeset 17: c7165d93a9eb
author: ellis <ellis@rwest.io>
date: Sun, 22 Oct 2023 23:03:15 -0400
permissions: -rw-r--r--
description: add obj and net src
1 //! net tests
2 use std::net::UdpSocket;
3 #[test]
4 fn udp_start() {
5  let socket = UdpSocket::bind("127.0.0.1:0").expect("UdpSocket::bind failed");
6  assert!(socket.broadcast().is_ok());
7 }