Skip to content

Commit

Permalink
add macro-scope issue tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hax committed Sep 15, 2017
1 parent d278884 commit 4c62182
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/issues/macro-scope/calling.jedi
@@ -0,0 +1 @@
div.test1 = 'calling'
4 changes: 4 additions & 0 deletions test/issues/macro-scope/macros.jedi
@@ -0,0 +1,4 @@
::div.test of x
'['
= x
']'
3 changes: 3 additions & 0 deletions test/issues/macro-scope/simple/index.jedi
@@ -0,0 +1,3 @@
:import skeleton
#main::before
div = 'test'
2 changes: 2 additions & 0 deletions test/issues/macro-scope/simple/macros.jedi
@@ -0,0 +1,2 @@
:: div of msg
"(\(msg))"
6 changes: 6 additions & 0 deletions test/issues/macro-scope/simple/skeleton.jedi
@@ -0,0 +1,6 @@
:import macros

body
:let x = 1
#main
'Hello world!'
9 changes: 9 additions & 0 deletions test/issues/macro-scope/skeleton.jedi
@@ -0,0 +1,9 @@
:import macros


html
:let x = 1
body

#frag
'origin'
14 changes: 14 additions & 0 deletions test/issues/macro-scope/test.jedi
@@ -0,0 +1,14 @@
:import skeleton

#frag
:for i in [1, 2, 3]
= i
:import calling

-- #frag::before
div
div.test = 'before'

-- #frag::after
div
div.test = 'after'

0 comments on commit 4c62182

Please sign in to comment.