Skip to content

Commit

Permalink
remove commented out tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr committed Jul 31, 2024
1 parent d6197b5 commit 0710f31
Showing 1 changed file with 0 additions and 73 deletions.
73 changes: 0 additions & 73 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1173,57 +1173,6 @@ mod test {
Ok(())
}

// /// Verifies the `NormalizePaths` trait works for an inlined asset.
// #[test]
// fn normalize_inlined_assets() -> Result<()> {
// let inlined_asset = BasicAsset::InlinedAsset {
// content: "Test".to_string(),
// };
// inlined_asset.normalize_paths(Path::new("./"))?;

// let inlined_asset = BasicAsset::InlinedUniqueAsset {
// content: Ustr::from("Test"),
// };
// inlined_asset.normalize_paths(Path::new("./"))?;
// Ok(())
// }

// /// Verifies the `VerifyPaths` trait works for an inlined asset.
// #[test]
// fn verify_inlined_assets() -> Result<()> {
// let inlined_asset = BasicAsset::InlinedAsset {
// content: "Test".to_string(),
// };
// assert!(inlined_asset.verify_paths(Path::new("./"))?);

// let inlined_asset = BasicAsset::InlinedUniqueAsset {
// content: Ustr::from("Test"),
// };
// assert!(inlined_asset.verify_paths(Path::new("./"))?);
// Ok(())
// }

// /// Verifies the `NormalizePaths` trait works for a transcription asset.
// #[test]
// fn transcription_normalize_paths() {
// let asset = ExerciseAsset::TranscriptionAsset {
// content: "content".into(),
// external_link: None,
// };
// assert!(asset.normalize_paths(Path::new("./")).is_ok());
// }

// /// Verifies the `VerifyPaths` trait works for a transcription asset.
// #[test]
// fn transcription_verify_paths() -> Result<()> {
// let asset = ExerciseAsset::TranscriptionAsset {
// content: "content".into(),
// external_link: None,
// };
// assert!(asset.verify_paths(Path::new("./"))?);
// Ok(())
// }

/// Verifies the `VerifyPaths` trait works for a flashcard asset.
#[test]
fn verify_flashcard_assets() -> Result<()> {
Expand Down Expand Up @@ -1284,28 +1233,6 @@ mod test {
Ok(())
}

// /// Verifies the `VerifyPaths` trait works for a basic exercise asset.
// #[test]
// fn exercise_basic_asset_verify_paths() -> Result<()> {
// let temp_dir = tempfile::tempdir()?;
// let basic_asset = ExerciseAsset::BasicAsset(BasicAsset::InlinedAsset {
// content: "my content".to_string(),
// });
// assert!(basic_asset.verify_paths(temp_dir.path())?);
// Ok(())
// }

// /// Verifies the `NormalizePaths` trait works for a basic exercise asset.
// #[test]
// fn exercise_basic_asset_normalize_paths() -> Result<()> {
// let temp_dir = tempfile::tempdir()?;
// let basic_asset = ExerciseAsset::BasicAsset(BasicAsset::InlinedAsset {
// content: "my content".to_string(),
// });
// basic_asset.normalize_paths(temp_dir.path())?;
// Ok(())
// }

/// Verifies the default scheduler options are valid.
#[test]
fn valid_default_scheduler_options() {
Expand Down

0 comments on commit 0710f31

Please sign in to comment.