From 351eb983c7c7439167c961a0c570402a3b9bd62c Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 29 Nov 2024 21:14:26 -0600 Subject: [PATCH] fixing test having the right data --- src/lisp.rs | 2 +- test_slides.lisp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test_slides.lisp diff --git a/src/lisp.rs b/src/lisp.rs index 438fbf4..07027d0 100644 --- a/src/lisp.rs +++ b/src/lisp.rs @@ -33,7 +33,7 @@ mod test { #[test] fn test_parsing_lisp() { let lisp = - read_to_string("./test_presentation.lisp").expect("oops"); + read_to_string("./test_slides.lisp").expect("oops"); let lisp_value = crisp::reader::read(&lisp); let test_vec = vec![test_slide(), test_second_slide()]; match lisp_value { diff --git a/test_slides.lisp b/test_slides.lisp new file mode 100644 index 0000000..0f78eb9 --- /dev/null +++ b/test_slides.lisp @@ -0,0 +1,3 @@ +(slide :background (image :source "~/pics/frodo.jpg" :fit fill) + (text "This is frodo" :font-size 70)) +(slide (video :source "~/vids/test/camprules2024.mp4" :fit contain))