Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 6f32773

Browse files
committed
test: add more fixtures
1 parent dee0cdd commit 6f32773

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules/
2+
target/
3+
Cargo.lock

spec/fixtures/Cargo.toml renamed to Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ edition = "2018"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

8-
[dependencies]
8+
[[bin]]
9+
name = "atom-ide-rust-test"
10+
path = "./spec/fixtures/src/main.rs"
11+
12+
[lib]
13+
name = "atom_ide_rust_lib_test"
14+
path = "./spec/fixtures/lib/lib.rs"

spec/fixtures/lib/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#[cfg(test)]
2+
mod tests {
3+
#[test]
4+
fn it_works() {
5+
assert_eq!(2 + 2, 4);
6+
}
7+
}

0 commit comments

Comments
 (0)