File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ fn main() {
10
10
// Option::zip
11
11
ac. emit_rustc_version ( 1 , 46 ) ;
12
12
13
+ // Remove this comment if enabled proptests
14
+ // ::PROPERTY-TESTS:: autocfg::emit("property_tests");
15
+
13
16
let outdir: PathBuf = std:: env:: var_os ( "OUT_DIR" ) . unwrap ( ) . into ( ) ;
14
17
write_default_precision_file ( & outdir) ;
15
18
}
Original file line number Diff line number Diff line change 9
9
sed -i.bak -e ' s|# PROPERTY-TESTS: ||' Cargo.toml
10
10
11
11
# include the property-test file in lib.rs
12
- sed -i.bak -e ' s|// ::PROPERTY-TESTS:: ||' src/lib .rs
12
+ sed -i.bak -e ' s|// ::PROPERTY-TESTS:: ||' build .rs
13
13
14
14
# Run commands
15
15
" $@ "
Original file line number Diff line number Diff line change @@ -3356,8 +3356,14 @@ mod test_with_scale_round {
3356
3356
include ! ( "lib.tests.with_scale_round.rs" ) ;
3357
3357
}
3358
3358
3359
- // enable these tests with scripts/bigdecimal-property-tests
3360
- // ::PROPERTY-TESTS:: #[cfg(test)] #[macro_use] extern crate proptest;
3361
- // ::PROPERTY-TESTS:: #[cfg(test)] mod property_tests {
3362
- // ::PROPERTY-TESTS:: use super::*; use paste::paste;
3363
- // ::PROPERTY-TESTS:: include!("lib.tests.property-tests.rs"); }
3359
+
3360
+ #[ cfg( all( test, property_tests) ) ]
3361
+ extern crate proptest;
3362
+
3363
+ #[ cfg( all( test, property_tests) ) ]
3364
+ mod proptests {
3365
+ use super :: * ;
3366
+ use paste:: paste;
3367
+
3368
+ include ! ( "lib.tests.property-tests.rs" ) ;
3369
+ }
You can’t perform that action at this time.
0 commit comments