summaryrefslogtreecommitdiff
path: root/crates/nu-parser/tests/test_parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/nu-parser/tests/test_parser.rs')
-rw-r--r--crates/nu-parser/tests/test_parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/nu-parser/tests/test_parser.rs b/crates/nu-parser/tests/test_parser.rs
index 86511bdca..b26ae20db 100644
--- a/crates/nu-parser/tests/test_parser.rs
+++ b/crates/nu-parser/tests/test_parser.rs
@@ -2,7 +2,7 @@ use nu_parser::*;
use nu_protocol::{
ast::{Argument, Expr, Expression, ExternalArgument, PathMember, Range},
engine::{Call, Command, EngineState, Stack, StateWorkingSet},
- Category, ParseError, PipelineData, ShellError, Signature, Span, SyntaxShape, Type,
+ Category, DeclId, ParseError, PipelineData, ShellError, Signature, Span, SyntaxShape, Type,
};
use rstest::rstest;
@@ -607,7 +607,7 @@ pub fn parse_call() {
assert!(element.redirection.is_none());
if let Expr::Call(call) = &element.expr.expr {
- assert_eq!(call.decl_id, 0);
+ assert_eq!(call.decl_id, DeclId::new(0));
}
}
@@ -661,7 +661,7 @@ pub fn parse_call_short_flag_batch_arg_allowed() {
assert!(element.redirection.is_none());
if let Expr::Call(call) = &element.expr.expr {
- assert_eq!(call.decl_id, 0);
+ assert_eq!(call.decl_id, DeclId::new(0));
assert_eq!(call.arguments.len(), 2);
matches!(call.arguments[0], Argument::Named((_, None, None)));
matches!(call.arguments[1], Argument::Named((_, None, Some(_))));