diff options
author | Aria <me@aria.rip> | 2023-11-30 13:13:11 +0000 |
---|---|---|
committer | Aria <me@aria.rip> | 2023-11-30 13:13:11 +0000 |
commit | eb697c607bdbf0b768e06dca701c14761206f344 (patch) | |
tree | eeb1d601aa9c9c1d0f70410f075c1ba8e9506f1c /src/tests/example_stack | |
parent | 4aab30e99bcea7f32469048916be5342ea3c0f4d (diff) |
test: remove old tests and fix one remaining one
easier than changing them all, this is fine for now
Diffstat (limited to 'src/tests/example_stack')
-rw-r--r-- | src/tests/example_stack/Cargo.toml | 1 | ||||
-rw-r--r-- | src/tests/example_stack/src/main.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/example_stack/Cargo.toml b/src/tests/example_stack/Cargo.toml index 3010313..9827bef 100644 --- a/src/tests/example_stack/Cargo.toml +++ b/src/tests/example_stack/Cargo.toml @@ -6,3 +6,4 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +primrose-library = { path = "../../crates/library" }
\ No newline at end of file diff --git a/src/tests/example_stack/src/main.rs b/src/tests/example_stack/src/main.rs index daa44d0..d36e683 100644 --- a/src/tests/example_stack/src/main.rs +++ b/src/tests/example_stack/src/main.rs @@ -2,7 +2,7 @@ mod types; use types::*; fn main() { - let mut c = StackCon::<u32>::new(); + let mut c = StackCon::<u32>::default(); for x in 0..10 { c.insert(x); c.insert(x); |