chore: add a couple of rust test snippets
This commit is contained in:
parent
1a47852510
commit
84d3f4cafb
2 changed files with 18 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
# name: Rust test
|
||||
# key: it
|
||||
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||
# filetypes: rust
|
||||
# --
|
||||
#[test]
|
||||
fn $1() {
|
||||
$0
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# name: Test module
|
||||
# key: test
|
||||
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||
# filetypes: rust
|
||||
# --
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
$0
|
||||
}
|
||||
Loading…
Reference in a new issue