Skip to content

Commit

Permalink
Merge pull request #198162 from Homebrew/jsonnet-heredocs
Browse files Browse the repository at this point in the history
Use Jsonnet language-specific heredoc delimiters
  • Loading branch information
BrewTestBot authored Nov 19, 2024
2 parents 2ddc250 + 337c12f commit b3bb5f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Formula/g/go-jsonnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ def install
end

test do
(testpath/"example.jsonnet").write <<~EOS
(testpath/"example.jsonnet").write <<~JSONNET
{
person1: {
name: "Alice",
welcome: "Hello " + self.name + "!",
},
person2: self.person1 { name: "Bob" },
}
EOS
JSONNET

expected_output = {
"person1" => {
Expand Down
4 changes: 2 additions & 2 deletions Formula/j/jsonnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def install
end

test do
(testpath/"example.jsonnet").write <<~EOS
(testpath/"example.jsonnet").write <<~JSONNET
{
person1: {
name: "Alice",
welcome: "Hello " + self.name + "!",
},
person2: self.person1 { name: "Bob" },
}
EOS
JSONNET

expected_output = {
"person1" => {
Expand Down

0 comments on commit b3bb5f9

Please sign in to comment.