forge
Explore
Log in

Don't you dare go Hollow

edith

Clone
★ 0

0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits

touch.rs26 lines, 1.1 KiBHistoryRawDownload
1//! The EQ frequency field reads like an NLE's, and the Deinterlace row and the Properties plate
2//! say things plainly and sit where they belong.
3
4use super::*;
5use crate::ui::cards::numedit::NumTarget;
6
7#[test]
8fn a_frequency_reads_in_hz_below_a_kilohertz_and_in_khz_above() {
9 assert_eq!(NumTarget::Freq.shown(80.), "80");
10 assert_eq!(NumTarget::Freq.unit(80.), "Hz");
11 assert_eq!(NumTarget::Freq.shown(11093.), "11.1");
12 assert_eq!(NumTarget::Freq.unit(11093.), "kHz");
13 assert_eq!(NumTarget::Freq.shown(1000.), "1.0");
14 assert_eq!(NumTarget::Freq.shown(20000.), "20.0");
15 assert_eq!(NumTarget::Freq.unit(999.6), "kHz");
16 assert_eq!(NumTarget::Freq.shown(999.6), "1.0");
17}
18
19#[test]
20fn the_deinterlace_label_has_no_jargon_and_the_properties_plate_sits_by_its_row() {
21 let card = src_text("ui/cards/transform.rs");
22 assert!(card.contains(".child(\"Deinterlace\")"));
23 assert!(card.contains("This video's lines come bottom field first"));
24 let lib = src_text("ui/library.rs");
25 assert!(lib.contains("crate::ui::anchor::row_of(&path, menu.stream)"));
26}