1 2 3 4 5 6 7 8 9 10 11 12
use crate::syntax::{ ast::{node::Throw, Const}, parser::tests::check_parser, }; #[test] fn check_throw_parsing() { check_parser( "throw 'error';", vec![Throw::new(Const::from("error")).into()], ); }