chore: add some unit tests to stack

This commit is contained in:
Kasey White
2023-03-30 11:32:18 -04:00
parent 6a4f62d074
commit 8fad5b77c6
3 changed files with 113 additions and 1 deletions

View File

@@ -1,6 +1,12 @@
#[derive(Debug, Clone, Default, Eq, PartialEq)]
pub struct Scope(pub(self) Vec<u64>);
impl From<Vec<u64>> for Scope {
fn from(value: Vec<u64>) -> Self {
Self(value)
}
}
impl Scope {
pub fn push(&mut self, value: u64) {
self.0.push(value);