1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-01 01:32:04 +03:00
vimr/VimRTests/StringCommonsTest.swift

17 lines
373 B
Swift
Raw Normal View History

2017-05-02 23:18:09 +03:00
/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import XCTest
import Nimble
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"))
}
}