mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-15 10:48:54 +03: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
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ class PushRulesConditionTest : MatrixTest {
|
|||
val condition = EventMatchCondition("content.body", "cake*lie", false)
|
||||
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("How was the cakeisalie?")))
|
||||
assertFalse(condition.isSatisfied(createSimpleTextEvent("How was the notcakeisalie?")))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Reference in a new issue