Skip to content

Commit

Permalink
Revamp @define #140 : fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 18, 2023
1 parent 69df7ac commit 3ebdf9b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/18_vars_priority.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

@define V="V_prelude"
@define V "V_prelude"

@goal default
echo "A=$A"
Expand Down
3 changes: 1 addition & 2 deletions tests/21_parsing_err1.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@


@goal 'goal name
echo 123
@goal 'goal name
3 changes: 1 addition & 2 deletions tests/21_parsing_err2.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


@goal 'goal name'
@doc doc'text
echo 123
@doc doc'text
6 changes: 3 additions & 3 deletions tests/24_define_everywhere.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

@define A=a
@define A a

@goal default
@use_lib
echo "$A"
f
echo "$C"

@define B="${A}b"
@define B "${A}b"

@lib
f() {
echo "$B"
}

@define C="${B}c"
@define C "${B}c"

0 comments on commit 3ebdf9b

Please sign in to comment.