aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish_tests.c')
-rw-r--r--fish_tests.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fish_tests.c b/fish_tests.c
index 5cde0bd3..2b83ee71 100644
--- a/fish_tests.c
+++ b/fish_tests.c
@@ -483,43 +483,43 @@ static void test_parser()
say( L"Testing null input to parser" );
- if( !parser_test( 0, 0 ) )
+ if( !parser_test( 0, 0, 0 ) )
{
err( L"Null input to parser_test undetected" );
}
say( L"Testing block nesting" );
- if( !parser_test( L"if; end", 0 ) )
+ if( !parser_test( L"if; end", 0, 0 ) )
{
err( L"Incomplete if statement undetected" );
}
- if( !parser_test( L"if test; echo", 0 ) )
+ if( !parser_test( L"if test; echo", 0, 0 ) )
{
err( L"Missing end undetected" );
}
- if( !parser_test( L"if test; end; end", 0 ) )
+ if( !parser_test( L"if test; end; end", 0, 0 ) )
{
err( L"Unbalanced end undetected" );
}
say( L"Testing detection of invalid use of builtin commands" );
- if( !parser_test( L"case foo", 0 ) )
+ if( !parser_test( L"case foo", 0, 0 ) )
{
err( L"'case' command outside of block context undetected" );
}
- if( !parser_test( L"switch ggg; if true; case foo;end;end", 0 ) )
+ if( !parser_test( L"switch ggg; if true; case foo;end;end", 0, 0 ) )
{
err( L"'case' command outside of switch block context undetected" );
}
- if( !parser_test( L"else", 0 ) )
+ if( !parser_test( L"else", 0, 0 ) )
{
err( L"'else' command outside of conditional block context undetected" );
}
- if( !parser_test( L"break", 0 ) )
+ if( !parser_test( L"break", 0, 0 ) )
{
err( L"'break' command outside of loop block context undetected" );
}
- if( !parser_test( L"exec ls|less", 0 ) || !parser_test( L"echo|return", 0 ))
+ if( !parser_test( L"exec ls|less", 0, 0 ) || !parser_test( L"echo|return", 0, 0 ))
{
err( L"Invalid pipe command undetected" );
}