cleaner test code
This commit is contained in:
parent
0606b985e6
commit
e139756a81
1 changed files with 3 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ mod func_tests {
|
|||
#[test]
|
||||
fn decl_and_call_external_func_singlet() {
|
||||
match lex("((input))".to_string()) {
|
||||
Err(e) => panic!(e),
|
||||
Err(e) => panic!("{}", e),
|
||||
Ok(finner) => {
|
||||
let test_external_func: Function = Function{
|
||||
name: String::from("echo"),
|
||||
|
|
@ -113,7 +113,7 @@ mod func_tests {
|
|||
#[test]
|
||||
fn decl_and_call_external_func_multi_body() {
|
||||
match lex("((input) (input))".to_string()) {
|
||||
Err(e) => panic!(e),
|
||||
Err(e) => panic!("{}", e),
|
||||
Ok(finner) => {
|
||||
let test_external_func: Function = Function{
|
||||
name: String::from("echo_2"),
|
||||
|
|
@ -191,7 +191,7 @@ mod func_tests {
|
|||
};
|
||||
|
||||
match lex("((test_inner true))".to_string()) {
|
||||
Err(e) => panic!(e),
|
||||
Err(e) => panic!("{}", e),
|
||||
Ok(finner) => {
|
||||
let outer_func: Function = Function{
|
||||
name: String::from("test_outer"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue