mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 07:13:24 +03:00
16 lines
372 B
Swift
16 lines
372 B
Swift
/**
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
* See LICENSE
|
|
*/
|
|
|
|
import Nimble
|
|
import XCTest
|
|
|
|
class StringCommonsTest: XCTestCase {
|
|
func testWithoutPrefix() {
|
|
expect("prefixAbc".without(prefix: "prefix")).to(equal("Abc"))
|
|
expect("prefix".without(prefix: "prefix")).to(equal(""))
|
|
expect("Abcprefix".without(prefix: "prefix")).to(equal("Abcprefix"))
|
|
}
|
|
}
|