diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2021-02-02 00:55:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 10:55:23 -0500 |
commit | 84f8b87f1b0fc6b7ec3a7f157f99d7f098d43101 (patch) | |
tree | 37ad25f567cbce1cb4f1e6b1f33360233de8fe78 /core/lib.rs | |
parent | 23281be33a378ca548f0a407f642331f20b00a43 (diff) |
chore: make all tests annotated with `#[cfg(test)]` (#9347)
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); + } } |