1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-18 19:21:39 +03:00
vimr/VimR/VimRTests/StringCommonsTest.swift
2017-12-03 09:59:15 +01:00

17 lines
373 B
Swift

/**
* 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"))
}
}