From d1f2dc90a5f8dd3c7ffa6a9549c414c0ff73e958 Mon Sep 17 00:00:00 2001 From: nefrob Date: Sun, 11 Aug 2024 07:18:12 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Add=20test=20for=20new=20setting?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ syntaxes/tests/variables/settings.just | 2 ++ syntaxes/tests/variables/settings.just.snap | 25 +++++++++++++++++++++ 3 files changed, 31 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecba71c..49ed0df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Changed + +- Add tests for settings added in release 1.33.0 + ## [0.5.2] - 2024-08-02 ### Changed diff --git a/syntaxes/tests/variables/settings.just b/syntaxes/tests/variables/settings.just index 0912253..cbcf5e6 100644 --- a/syntaxes/tests/variables/settings.just +++ b/syntaxes/tests/variables/settings.just @@ -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 diff --git a/syntaxes/tests/variables/settings.just.snap b/syntaxes/tests/variables/settings.just.snap index 1d2429b..63930d2 100644 --- a/syntaxes/tests/variables/settings.just.snap +++ b/syntaxes/tests/variables/settings.just.snap @@ -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 @@ -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