1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#[ test ] fn from_test() { // let got = IsTransparent ::default(); // let exp = IsTransparent( true ); // a_id!( got, exp ); let got = IsTransparent ::from( true ); let exp = IsTransparent( true ); a_id!( got, exp ); let got = IsTransparent ::from( false ); let exp = IsTransparent( false ); a_id!( got, exp ); // let got: bool = IsTransparent ::from( true ).into(); // let exp = true; // a_id!( got, exp ); // let got: bool = IsTransparent ::from( false ).into(); // let exp = false; // a_id!( got, exp ); // let got = IsTransparent ::default(); // let exp = true; // a_id!( *got, exp ); // // let mut got = IsTransparent ::default(); // *got = false; // let exp = false; // a_id!( *got, exp ); } // xxx