Removed trans_comm.rs from the compiler. Updating aio/sio to work with the new chan and port system, started on a networking module for the standard library.
This commit is contained in:
parent
e33af7e0b5
commit
cf2def46c1
34 changed files with 326 additions and 600 deletions
12
src/test/stdtest/net.rs
Normal file
12
src/test/stdtest/net.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use std;
|
||||
import std::net;
|
||||
|
||||
#[test]
|
||||
fn test_format_ip() {
|
||||
assert(net::format_addr(net::ipv4(127u8,0u8,0u8,1u8)) == "127.0.0.1")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_ip() {
|
||||
assert(net::parse_addr("127.0.0.1") == net::ipv4(127u8,0u8,0u8,1u8));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue