Skip to content

Commit

Permalink
Add commented tests regarding extprim
Browse files Browse the repository at this point in the history
For now let them be commented until bumping minimal Rust version to 1.20
because of the struct field attributes feature
(rust-lang/rust#41681).
  • Loading branch information
hcpl committed Sep 3, 2017
1 parent d6955bf commit 8ccf1a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//#[cfg(feature = "extprim")]
//extern crate extprim;
#[macro_use]
extern crate lazy_static;
#[macro_use]
Expand All @@ -12,6 +14,8 @@ extern crate serde_mtproto_derive;

use std::collections::BTreeMap;

//#[cfg(feature = "extprim")]
//use extprim::i128::i128;
use serde_mtproto_other_name::{Boxed, ByteBuf, MtProtoSized, to_bytes, to_writer, from_bytes, from_reader};


Expand All @@ -34,6 +38,8 @@ enum Cafebabe<T: MtProtoSized> {
byte_id: i8,
position: (u64, u32),
data: Boxed<T>,
//#[cfg(feature = "extprim")]
//bignum: i128,
},
#[id = "0xbaaaaaad"]
Baz {
Expand Down Expand Up @@ -80,6 +86,11 @@ lazy_static! {
byte_id: -20,
position: (350, 142857),
data: Boxed::new(4096),
// TODO: uncomment this after bumping minimal Rust version to 1.20 with the struct field
// attributes feature.
//
//#[cfg(feature = "extprim")]
//bignum: i128::from_str("100000000000000000000000000000000000000").unwrap(),
};

static ref CAFEBABE_BAR_SERIALIZED_BOXED: Vec<u8> = vec![
Expand Down

0 comments on commit 8ccf1a5

Please sign in to comment.