use mrc_workout_creator::workout_data::{effort::Effort, workout::Workout}; #[test] fn simple_watt_workout_to_mrc() { assert_eq!( Workout::new( "test_workout", "test-1", vec![ Effort::new(5.0, 80.0, None,), Effort::new(5.0, 100.0, None,), ], ) .to_mrc(), "[COURSE HEADER]\n\ DESCRIPTION = test-1\n\ MINUTES WATTS\n\ [END COURSE HEADER]\n\ [COURSE DATA]\n\ 0.00\t80.00\n\ 5.00\t80.00\n\ 5.00\t100.00\n\ 10.00\t100.00\n\ [END COURSE DATA]" ) }