#[test] #[should_fail]
fn test_ascii_fail_char_slice() { 'λ'.to_ascii(); }
+ #[test]
fn test_opt() {
assert_eq!(65u8.to_ascii_opt(), Some(Ascii { chr: 65u8 }));
assert_eq!(255u8.to_ascii_opt(), None);
#[cfg(test)]
mod test {
use super::*;
- use io::net::ip::{Ipv4Addr, SocketAddr};
+ use io::net::ip::{SocketAddr};
use io::*;
- use io::test::*;
use prelude::*;
iotest!(fn bind_error() {
use unstable::run_in_bare_thread;
use super::*;
use rt::task::Task;
- use rt::local_ptr;
#[test]
fn thread_local_task_smoke_test() {
fn visit_estr_uniq(&mut self) -> bool { true }
fn visit_estr_slice(&mut self) -> bool { true }
fn visit_estr_fixed(&mut self,
- _sz: uint, _sz: uint,
+ _sz: uint, _sz2: uint,
_align: uint) -> bool { true }
fn visit_box(&mut self, _mtbl: uint, _inner: *TyDesc) -> bool { true }