-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from NerdWallet/android-separation
Add support for Android-compliant builds
- Loading branch information
Showing
18 changed files
with
909 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ out/ | |
.classpath | ||
.project | ||
bin/ | ||
.settings/ | ||
.settings/ | ||
local.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.amshove.kluent | ||
|
||
import kotlin.reflect.KClass | ||
|
||
infix fun Any?.`should equal`(theOther: Any?) = this.shouldEqual(theOther) | ||
|
||
infix fun Any?.`should not equal`(theOther: Any?) = this.shouldNotEqual(theOther) | ||
|
||
infix fun Any?.`should be`(theOther: Any?) = this.shouldBe(theOther) | ||
|
||
infix fun Any?.`should not be`(theOther: Any?) = this.shouldNotBe(theOther) | ||
|
||
infix fun Any?.`should be instance of`(className: Class<*>) = this.shouldBeInstanceOf(className) | ||
|
||
infix fun Any?.`should be instance of`(className: KClass<*>) = this.shouldBeInstanceOf(className) | ||
|
||
infix fun Any?.`should not be instance of`(className: Class<*>) = this.shouldNotBeInstanceOf(className) | ||
|
||
infix fun Any?.`should not be instance of`(className: KClass<*>) = this.shouldNotBeInstanceOf(className) | ||
|
||
fun Any?.`should be null`() = this.shouldBeNull() | ||
|
||
fun Any?.`should not be null`() = this.shouldNotBeNull() | ||
|
||
fun Boolean.`should be true`() = this.shouldBeTrue() | ||
|
||
fun Boolean.`should be false`() = this.shouldBeFalse() | ||
|
||
fun Boolean.`should not be true`() = this.shouldBeFalse() | ||
|
||
fun Boolean.`should not be false`() = this.shouldBeTrue() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/kotlin/org/amshove/kluent/CharSequenceBacktick.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.amshove.kluent | ||
|
||
infix fun CharSequence.`should start with`(theOther: CharSequence) = this.shouldStartWith(theOther) | ||
|
||
infix fun CharSequence.`should end with`(theOther: CharSequence) = this.shouldEndWith(theOther) | ||
|
||
infix fun CharSequence.`should contain`(theOther: CharSequence) = this.shouldContain(theOther) | ||
|
||
infix fun CharSequence.`should match`(regex: String) = this.shouldMatch(regex) | ||
|
||
infix fun CharSequence.`should match`(regex: Regex) = this.shouldMatch(regex) | ||
|
||
fun CharSequence.`should be empty`() = this.shouldBeEmpty() | ||
|
||
fun CharSequence?.`should be null or empty`() = this.shouldBeNullOrEmpty() | ||
|
||
fun CharSequence.`should be blank`() = this.shouldBeBlank() | ||
|
||
fun CharSequence?.`should be null or blank`() = this.shouldBeNullOrBlank() | ||
|
||
infix fun String.`should equal to`(theOther: String) = this.shouldEqualTo(theOther) | ||
|
||
infix fun String.`should not equal to`(theOther: String) = this.shouldNotEqualTo(theOther) | ||
|
||
infix fun CharSequence.`should not start with`(theOther: CharSequence) = this.shouldNotStartWith(theOther) | ||
|
||
infix fun CharSequence.`should not end with`(theOther: CharSequence) = this.shouldNotEndWith(theOther) | ||
|
||
infix fun CharSequence.`should not contain`(theOther: CharSequence) = this.shouldNotContain(theOther) | ||
|
||
infix fun CharSequence.`should not match`(regex: String) = this.shouldNotMatch(regex) | ||
|
||
infix fun CharSequence.`should not match`(regex: Regex) = this.shouldNotMatch(regex) | ||
|
||
fun CharSequence.`should not be empty`() = this.shouldNotBeEmpty() | ||
|
||
fun CharSequence?.`should not be null or empty`() = this.shouldNotBeNullOrEmpty() | ||
|
||
fun CharSequence.`should not be blank`() = this.shouldNotBeBlank() | ||
|
||
fun CharSequence?.`should not be null or blank`() = this.shouldNotBeNullOrBlank() |
Oops, something went wrong.