coremlit 0.3.0

Safe, synchronous CoreML runtime for macOS (CPU/GPU/Neural Engine) with opt-in on-device multimodal pipelines: speech (Whisper STT, forced alignment, speaker diarization, Silero VAD), AudioSet sound-event tagging, and audio/text/image embeddings (CLAP, granite, SigLIP)
use super::*;

/// The typed face of `split_special_tokens`: `false` recognizes, `true`
/// splits, and the spellings are pinned.
#[test]
fn the_split_behaviours_map_the_boolean_option() {
  assert_eq!(
    SplitSpecialTokens::from_split(false),
    SplitSpecialTokens::Recognize
  );
  assert_eq!(
    SplitSpecialTokens::from_split(true),
    SplitSpecialTokens::Split
  );
  for split in [false, true] {
    assert_eq!(SplitSpecialTokens::from_split(split).is_split(), split);
  }
  assert_eq!(SplitSpecialTokens::Recognize.to_string(), "recognize");
  assert_eq!(SplitSpecialTokens::Split.to_string(), "split");
}