Skip to content

Commit

Permalink
Add test for {{.}} inside sections
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 22, 2023
1 parent 73a0610 commit db9702d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public function this_has_no_special_meaning_in_path() {
Assert::equals('Test', $this->evaluate('{{./this}}', ['this' => 'Test']));
}

#[Test]
public function iterator_inside_section() {
Assert::equals('User @test', $this->evaluate('{{#user}}User @{{.}}{{/user}}', ['user' => 'test']));
}

#[Test]
public function root_reference() {
Assert::equals('Test', $this->evaluate('{{@root.name.en}}', ['name' => ['en' => 'Test']]));
Expand Down

0 comments on commit db9702d

Please sign in to comment.