remove unit test that can't be tested anymore

This commit is contained in:
Oliver Schneider 2015-12-23 22:29:43 +01:00 committed by Oliver Schneider
parent bfa66bb389
commit 08e35d4dec
1 changed files with 0 additions and 8 deletions

View File

@ -3173,12 +3173,4 @@ mod tests {
let varstr = variant_to_string(&var);
assert_eq!(varstr, "principal_skinner");
}
#[test]
fn test_signed_int_to_string() {
let pos_int = ast::LitInt(42, ast::SignedIntLit(ast::IntTy::I32, ast::Plus));
let neg_int = ast::LitInt((!42 + 1) as u64, ast::SignedIntLit(ast::IntTy::I32, ast::Minus));
assert_eq!(format!("-{}", lit_to_string(&codemap::dummy_spanned(pos_int))),
lit_to_string(&codemap::dummy_spanned(neg_int)));
}
}