Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xasopheno committed Mar 8, 2023
1 parent 8b85a7a commit 889ac84
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 35 deletions.
1 change: 0 additions & 1 deletion instrument/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::f64::consts::PI;
use weresocool_shared::{r_to_f64, Settings};

const TAU: f64 = PI * 2.0;
// const FACTOR: f64 = TAU / Settings::global().sample_rate;

fn random_offset() -> f64 {
thread_rng().gen_range(-0.5, 0.5)
Expand Down
67 changes: 33 additions & 34 deletions src/testing/expect_tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[cfg(test)]
mod expect {
mod expect_tests {
use crate::{
generation::{RenderReturn, RenderType},
interpretable::{InputType::Filename, Interpretable},
Expand Down Expand Up @@ -62,11 +62,10 @@ mod expect {
// expect(resource);
// }

// #[test_resources("mocks/tags/*.socool")]
// fn __tags_generated_(resource: &str) {
// expect(resource);
// }
//
#[test_resources("mocks/tags/*.socool")]
fn __tags_generated_(resource: &str) {
expect(resource);
}

#[test_resources("mocks/ops/*.socool")]
fn __ops_generated_(resource: &str) {
Expand All @@ -78,38 +77,38 @@ mod expect {
expect(resource);
}

// #[test_resources("mocks/lambda/*.socool")]
// fn __lambda_generated_(resource: &str) {
// expect(resource);
// }
#[test_resources("mocks/lambda/*.socool")]
fn __lambda_generated_(resource: &str) {
expect(resource);
}

// #[test_resources("mocks/waveform/*.socool")]
// fn __waveform_generated_(resource: &str) {
// expect(resource);
// }
#[test_resources("mocks/waveform/*.socool")]
fn __waveform_generated_(resource: &str) {
expect(resource);
}

// #[test_resources("mocks/list/*.socool")]
// fn __list_generated_(resource: &str) {
// expect(resource);
// }
#[test_resources("mocks/list/*.socool")]
fn __list_generated_(resource: &str) {
expect(resource);
}

// #[test_resources("mocks/generator/*.socool")]
// fn __gen_op_generated_(resource: &str) {
// expect(resource);
// }
#[test_resources("mocks/generator/*.socool")]
fn __gen_op_generated_(resource: &str) {
expect(resource);
}

// #[test_resources("mocks/imports/*.socool")]
// fn __imports_generated_(resource: &str) {
// expect(resource);
// }
#[test_resources("mocks/imports/*.socool")]
fn __imports_generated_(resource: &str) {
expect(resource);
}

// #[test_resources("mocks/index/*.socool")]
// fn __index_generated_(resource: &str) {
// expect(resource);
// }
#[test_resources("mocks/index/*.socool")]
fn __index_generated_(resource: &str) {
expect(resource);
}

// #[test_resources("mocks/function/*.socool")]
// fn __function_generated_(resource: &str) {
// expect(resource);
// }
#[test_resources("mocks/function/*.socool")]
fn __function_generated_(resource: &str) {
expect(resource);
}
}

0 comments on commit 889ac84

Please sign in to comment.