diff --git a/mps-interpreter/tests/single_line.rs b/mps-interpreter/tests/single_line.rs index 40bd729..4350ba4 100644 --- a/mps-interpreter/tests/single_line.rs +++ b/mps-interpreter/tests/single_line.rs @@ -106,8 +106,9 @@ fn execute_comment_line() -> Result<(), Box> { #[test] fn execute_repeat_line() -> Result<(), Box> { - execute_single_line("repeat(song(`Christmas in L.A.`))", false, false)?; - execute_single_line("repeat(song(`Christmas in L.A.`), 4)", false, true) + execute_single_line("repeat(files(`~/Music/MusicFlac/Bruno Mars/24K Magic/`))", false, false)?; + execute_single_line("repeat(files(`~/Music/MusicFlac/Bruno Mars/24K Magic/`), 4)", false, true)?; + execute_single_line("repeat(files(`~/Music/MusicFlac/Bruno Mars/24K Magic/`), 0)", true, true) } #[test] @@ -140,6 +141,21 @@ fn execute_fieldfilter_line() -> Result<(), Box> { "files(`~/Music/MusicFlac/Bruno Mars/24K Magic/`).(year >= 2000)", false, true, + )?; + execute_single_line( + "files(`~/Music/MusicFlac/Bruno Mars/24K Magic/`).(year <= 2020)", + false, + true, + )?; + execute_single_line( + "files(`~/Music/MusicFlac/Bruno Mars/24K Magic/`).(year == 2016)", + false, + true, + )?; + execute_single_line( + "files(`~/Music/MusicFlac/Bruno Mars/24K Magic/`).(year != 2048)", + false, + true, ) }