Skip to content

Commit

Permalink
Test [private] attribute on variable
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Aug 10, 2024
1 parent 907ff68 commit 6fb7740
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/cases/expressions.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@

now <span class="Operator">:=</span> <span class="Function">datetime</span>(<span class="String">'%Y-%m-%d %H:%M:%S %Z'</span>)
now_utc <span class="Operator">:=</span> <span class="Function">datetime_utc</span>(<span class="String">'%Y-%m-%d %H:%M:%S %Z'</span>)

<span class="Type">[private]</span>
hidden <span class="Operator">:=</span> <span class="String">'foo'</span>
not_hidden <span class="Operator">:=</span> <span class="String">'-'</span> <span class="Operator">+</span> hidden
4 changes: 4 additions & 0 deletions tests/cases/expressions.just
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ unexport QT_QPA_PLATFORMTHEME

now := datetime('%Y-%m-%d %H:%M:%S %Z')
now_utc := datetime_utc('%Y-%m-%d %H:%M:%S %Z')

[private]
hidden := 'foo'
not_hidden := '-' + hidden

0 comments on commit 6fb7740

Please sign in to comment.