mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-30 15:50:53 +08:00
Add negative test for globs on body only matching full words
Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
This commit is contained in:
parent
48fc634825
commit
b24b1a1884
@ -106,6 +106,7 @@ class PushRulesConditionTest : MatrixTest {
|
|||||||
val condition = EventMatchCondition("content.body", "cake*lie", false)
|
val condition = EventMatchCondition("content.body", "cake*lie", false)
|
||||||
|
|
||||||
assert(condition.isSatisfied(createSimpleTextEvent("How was the cakeisalie?")))
|
assert(condition.isSatisfied(createSimpleTextEvent("How was the cakeisalie?")))
|
||||||
|
assertFalse(condition.isSatisfied(createSimpleTextEvent("How was the notcakeisalie?")))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user