uint tests are compiling again, fixed appveyor.yml and .travis.yml
This commit is contained in:
parent
103768a495
commit
c694d21170
|
@ -6,7 +6,7 @@ matrix:
|
|||
allow_failures:
|
||||
- rust: nightly
|
||||
script:
|
||||
- cargo check --tests
|
||||
- cargo check --all --tests
|
||||
- cargo build --all
|
||||
- cargo test --all --exclude uint --exclude fixed-hash
|
||||
- cd fixed-hash/ && cargo test --features=std,heapsizeof,uint_conversions && cd ..
|
||||
|
|
|
@ -3,7 +3,6 @@ environment:
|
|||
- FEATURES: ""
|
||||
|
||||
platform:
|
||||
- i686-pc-windows-msvc
|
||||
- x86_64-pc-windows-msvc
|
||||
|
||||
install:
|
||||
|
|
|
@ -635,6 +635,7 @@ mod tests {
|
|||
assert_eq!(a | b, c);
|
||||
}
|
||||
|
||||
#[cfg(feature="std")]
|
||||
#[test]
|
||||
fn from_and_to_address() {
|
||||
let address: H160 = "ef2d6d194084c2de36e0dabfce45d046b37d1106".into();
|
||||
|
@ -643,6 +644,7 @@ mod tests {
|
|||
assert_eq!(address, a);
|
||||
}
|
||||
|
||||
#[cfg(feature="std")]
|
||||
#[test]
|
||||
fn from_u64() {
|
||||
use core::str::FromStr;
|
||||
|
@ -652,6 +654,7 @@ mod tests {
|
|||
assert_eq!(H32::from(0x1234567890abcdef), H32::from_str("90abcdef").unwrap());
|
||||
}
|
||||
|
||||
#[cfg(feature="std")]
|
||||
#[test]
|
||||
fn from_str() {
|
||||
assert_eq!(H64::from(0x1234567890abcdef), H64::from("0x1234567890abcdef"));
|
||||
|
@ -677,6 +680,7 @@ mod tests {
|
|||
assert!(r == u)
|
||||
}
|
||||
|
||||
#[cfg(feature="uint_conversions")]
|
||||
#[test]
|
||||
#[should_panic]
|
||||
fn converting_differently_sized_types_panics() {
|
||||
|
|
|
@ -26,3 +26,8 @@ impl_quickcheck_arbitrary = ["quickcheck"]
|
|||
[[example]]
|
||||
name = "modular"
|
||||
required-features = ["std"]
|
||||
|
||||
[[test]]
|
||||
name = "uint_tests"
|
||||
required-features = ["std"]
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
//! Efficient large, fixed-size big integers and hashes.
|
||||
|
||||
#![cfg_attr(not(feature="std"), no_std)]
|
||||
#![cfg_attr(all(not(feature="std"), test), feature(alloc))]
|
||||
|
||||
#[doc(hidden)]
|
||||
pub extern crate byteorder;
|
||||
|
@ -29,9 +28,6 @@ pub extern crate rustc_hex;
|
|||
#[doc(hidden)]
|
||||
pub extern crate quickcheck;
|
||||
|
||||
#[cfg(all(not(feature = "std"), test))]
|
||||
extern crate alloc;
|
||||
|
||||
#[macro_use]
|
||||
extern crate crunchy;
|
||||
|
||||
|
|
Loading…
Reference in New Issue