Skip to content

Commit

Permalink
Update source tests with new grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
CabalCrow committed May 24, 2024
1 parent 5756514 commit 86567a7
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions test/corpus/stmt/source.nu
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,50 @@ source $plugin
(val_variable
(identifier))))

=====
source-004-string_var
=====

source 'file.nu'

-----

(nu_script
(stmt_source
(val_string)))

=====
source-005-pipe
=====

source ('file.nu')

-----

(nu_script
(stmt_source
(expr_parenthesized
(pipeline
(pipe_element
(val_string))))))

=====
source-006-interpolated
=====

source $"($plugin)"

-----

(nu_script
(stmt_source
(val_interpolated
(expr_interpolated
(pipeline
(pipe_element
(val_variable
(identifier))))))))

=====
source-env-001-smoke-test
=====
Expand Down

0 comments on commit 86567a7

Please sign in to comment.