2016-08-01 17:48:50 +02:00
|
|
|
# -*- mode: snippet -*-
|
|
|
|
# name: test module
|
|
|
|
# key: testmod
|
|
|
|
# --
|
|
|
|
#[cfg(test)]
|
2017-04-30 16:02:57 +02:00
|
|
|
mod ${1:tests} {
|
2016-08-01 17:48:50 +02:00
|
|
|
use super::*;
|
|
|
|
|
|
|
|
#[test]
|
2017-04-30 16:02:57 +02:00
|
|
|
fn ${2:test_name}() {
|
2016-08-01 19:49:44 +02:00
|
|
|
$0
|
2016-08-01 17:48:50 +02:00
|
|
|
}
|
2017-04-30 16:01:17 +02:00
|
|
|
}
|