Skip to content

Commit

Permalink
Update parser_tests.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor authored Oct 22, 2024
1 parent b34a34a commit 60c2bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/parser_tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use yagbas::{
item::{parse_token_trees_to_items, FnDecl, Item, Statement},
src_files::{FileSpan, FileSpanned, SrcFileInfo, SrcID},
src_files::{FileSpanned, SrcFileInfo, SrcID},
str_id::StrID,
token_tree::parse_tokens_to_token_trees,
};
Expand Down Expand Up @@ -71,7 +71,7 @@ fn can_parse_return_statement() {
let src = r#" fn main() { return } "#;
let items = parse_items_no_errors(src);
match items.as_slice() {
[(item, _file_span)] => match item {
[item] => match item._payload {
Item::Fn(FnDecl { name, args, statements }) => {
assert_eq!(name.as_str(), "main");
assert!(args.is_empty());
Expand Down

0 comments on commit 60c2bf5

Please sign in to comment.