Skip to content

Commit

Permalink
🧪 Add test for new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrob committed Aug 11, 2024
1 parent c105c05 commit d1f2dc9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- Add tests for settings added in release 1.33.0

## [0.5.2] - 2024-08-02

### Changed
Expand Down
2 changes: 2 additions & 0 deletions syntaxes/tests/variables/settings.just
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ set export := true
set fallback := true
set ignore-comments := false
set positional-arguments := true
set script-interpreter := ["sh", "-eu"]
set shell := ["bash", "-uc"]
set tempdir := "/tmp"
set windows-powershell := false
set windows-shell := "cmd"
set working-directory := "/tmp"
set unstable := true

# Boolean not required
Expand Down
25 changes: 25 additions & 0 deletions syntaxes/tests/variables/settings.just.snap
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@
# ^^ source.just keyword.operator.assignment.just
# ^ source.just
# ^^^^ source.just constant.language.boolean.just
>set script-interpreter := ["sh", "-eu"]
#^^^ source.just keyword.other.reserved.just
# ^ source.just
# ^^^^^^^^^^^^^^^^^^ source.just variable.other.just
# ^ source.just
# ^^ source.just keyword.operator.assignment.just
# ^^ source.just
# ^ source.just string.quoted.double.just string.quoted.double.just
# ^^ source.just string.quoted.double.just
# ^ source.just string.quoted.double.just
# ^^ source.just
# ^ source.just string.quoted.double.just string.quoted.double.just
# ^^^ source.just string.quoted.double.just
# ^ source.just string.quoted.double.just
# ^ source.just
>set shell := ["bash", "-uc"]
#^^^ source.just keyword.other.reserved.just
# ^ source.just
Expand Down Expand Up @@ -128,6 +143,16 @@
# ^ source.just string.quoted.double.just string.quoted.double.just
# ^^^ source.just string.quoted.double.just
# ^ source.just string.quoted.double.just
>set working-directory := "/tmp"
#^^^ source.just keyword.other.reserved.just
# ^ source.just
# ^^^^^^^^^^^^^^^^^ source.just variable.other.just
# ^ source.just
# ^^ source.just keyword.operator.assignment.just
# ^ source.just
# ^ source.just string.quoted.double.just string.quoted.double.just
# ^^^^ source.just string.quoted.double.just
# ^ source.just string.quoted.double.just
>set unstable := true
#^^^ source.just keyword.other.reserved.just
# ^ source.just
Expand Down

0 comments on commit d1f2dc9

Please sign in to comment.