diff options
Diffstat (limited to 'core/lib.rs')
-rw-r--r-- | core/lib.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/lib.rs b/core/lib.rs index 6a18be3f4..9f4fec003 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -78,7 +78,12 @@ pub fn v8_version() -> &'static str { v8::V8::get_version() } -#[test] -fn test_v8_version() { - assert!(v8_version().len() > 3); +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_v8_version() { + assert!(v8_version().len() > 3); + } } |