ollieatkinson / expectation Goto Github PK
View Code? Open in Web Editor NEWA simple and elegant matcher framework built on top of XCTest for Swift.
License: MIT License
A simple and elegant matcher framework built on top of XCTest for Swift.
License: MIT License
Create an OSX framework and add it as a scheme.
$ carthage update
*** Fetching Expectation
*** Checking out Expectation at "0.0.1"
*** xcodebuild output can be found in /var/folders/fc/_qbh8jv15qdftrq9n1sqyc95sj_xf1/T/carthage-xcodebuild.PY7LcG.log
*** Skipped building Expectation due to the error:
Dependency "Expectation" has no shared framework schemes
If you believe this to be an error, please file an issue with the maintainers at https://github.com/ollieatkinson/Expectation/issues/new
Currently the matcher for conformTo requires the object to respond to NSObjectProtocol
I should look at not requiring this.
A potential method might include something like
func conformTo<U>(type: U.Type, _ description: String = "") {
assertNotNil(expect as? U.Type, self.description(__FUNCTION__, type, description))
}
However I am not sure of the validity of this at the moment and more investigation is required.
Is there any way I can simplify self.description(#function, other, description)
as it is used in every matcher.
The #function
and value
passed are the only differences.
Currently building from cocoapods does not work - needs investigation.
And is this even possible because of the use of generics? Would this even be wanted with other options such as Expecta?
Investigate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.