Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 committed Jul 15, 2024
1 parent b287d33 commit 3cec351
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cases/expressions.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
xdg_executable <span class="Operator">:=</span> <span class="Function">executable_directory</span>()
xdg_home <span class="Operator">:=</span> <span class="Function">home_directory</span>()

mydir <span class="Operator">:=</span> <span class="Function">justfile_dir</span>()
invoked_from <span class="Operator">:=</span> <span class="Function">invocation_dir_native</span>()

random1 <span class="Operator">:=</span> <span class="Function">choose</span>(<span class="String">'10'</span>, <span class="Constant">HEXLOWER</span> <span class="Operator">+</span> <span class="Function">replace_regex</span>(<span class="Constant">HEXUPPER</span>, <span class="String">'\d+'</span>, <span class="String">''</span>))

example_url <span class="Operator">:=</span> <span class="String">'https://foo.example/?parameter='</span> <span class="Operator">+</span> <span class="Function">encode_uri_component</span>(
Expand Down
3 changes: 3 additions & 0 deletions tests/cases/expressions.just
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ xdg_data_local := data_local_directory()
xdg_executable := executable_directory()
xdg_home := home_directory()

mydir := justfile_dir()
invoked_from := invocation_dir_native()

random1 := choose('10', HEXLOWER + replace_regex(HEXUPPER, '\d+', ''))

example_url := 'https://foo.example/?parameter=' + encode_uri_component(
Expand Down

0 comments on commit 3cec351

Please sign in to comment.