Skip to content

Commit

Permalink
Add failing test case for #244
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Jan 31, 2025
1 parent 063b464 commit 4f333be
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,22 @@ class AttributeMergerTests extends Specification {
div('th:with': "value1='Hello!',value2='World!'")
}
}

def "Parses declarations with '=' symbols in them"() {
given:
def source = modelBuilder.build {
div('th:with': "isA=\${ a == b ? true : false}")
}
def target = modelBuilder.build {
div('th:with': "message='Hello!'")
}

when:
def result = attributeMerger.merge(target, source)

then:
result == modelBuilder.build {
div('th:with': "isA=\${ a == b ? true : false},message='Hello!'")
}
}
}

0 comments on commit 4f333be

Please sign in to comment.