diff --git a/js/test_cases/partial_jump_around/input1.json b/js/test_cases/partial_jump_around/input1.json new file mode 100644 index 0000000..5b9dd75 --- /dev/null +++ b/js/test_cases/partial_jump_around/input1.json @@ -0,0 +1,27 @@ +{ + "level3": { + "v3": "3", + "v4": "3", + "v5": "3", + "level4": { + "v4": "4", + "v5": "4", + "level5": { + "v5": "5" + } + } + }, + "level1": { + "v1": "1", + "v2": "1", + "v3": "1", + "v4": "1", + "v5": "1", + "level2": { + "v2": "2", + "v3": "2", + "v4": "2", + "v5": "2" + } + } +} diff --git a/js/test_cases/partial_jump_around/main.dust b/js/test_cases/partial_jump_around/main.dust new file mode 100644 index 0000000..6e8dad8 --- /dev/null +++ b/js/test_cases/partial_jump_around/main.dust @@ -0,0 +1,3 @@ +{#level1.level2} +{>partialone /} +{/level1.level2} diff --git a/js/test_cases/partial_jump_around/partialone.dust b/js/test_cases/partial_jump_around/partialone.dust new file mode 100644 index 0000000..b7b377b --- /dev/null +++ b/js/test_cases/partial_jump_around/partialone.dust @@ -0,0 +1,3 @@ +{#level3.level4} + {>partialtwo /} +{/level3.level4} diff --git a/js/test_cases/partial_jump_around/partialtwo.dust b/js/test_cases/partial_jump_around/partialtwo.dust new file mode 100644 index 0000000..d8f7866 --- /dev/null +++ b/js/test_cases/partial_jump_around/partialtwo.dust @@ -0,0 +1,7 @@ +{#level5} + {v1}{~n} + {v2}{~n} + {v3}{~n} + {v4}{~n} + {v5}{~n} +{/level5}