mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Add more tests
This commit is contained in:
parent
8226f60fad
commit
1a068ee191
1 changed files with 9 additions and 0 deletions
|
@ -110,6 +110,15 @@ class PushrulesConditionTest : MatrixTest {
|
|||
val condition = EventMatchCondition("content.body", "ben", true)
|
||||
|
||||
assertFalse(condition.isSatisfied(createSimpleTextEvent("benoit")))
|
||||
assertFalse(condition.isSatisfied(createSimpleTextEvent("Hello benoit")))
|
||||
assertFalse(condition.isSatisfied(createSimpleTextEvent("superben")))
|
||||
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("ben")))
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("hello ben")))
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("ben is there")))
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("hello ben!")))
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("hello Ben!")))
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("BEN")))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue