pniederw / expecty Goto Github PK
View Code? Open in Web Editor NEWPower assertions (as known from Groovy and Spock) for the Scala language.
License: Apache License 2.0
Power assertions (as known from Groovy and Spock) for the Scala language.
License: Apache License 2.0
The bump to 0.10 reduced unwanted verbosity (#1), but didn't kill it entirely.
I'm getting unwanted RangePosition found!
messages when compiling code that uses Expecty.
I'd love to get a build of expecty compiled against a recent 2.11.0 build (eg. M7) so that I can start testing my code for the transition to 2.11.0.
First off, Expecty is great. I've converted 90% of my assertions to Expecty calls. Thanks!
Using SBT and building a project with Expecty, the compiler prints an AST for each call site where Expecty is used. This makes it hard to find useful compiler messages buried in the noise.
If there's some standard trick to make this stuff go away, please mention it on the main page. Otherwise, please modify Expecty so it has a quiet mode.
def fun1(p: Int*) = p
expect {
fun1(List(1) :_*) == List(1)
}
error: inferred type arguments [$line6.type] do not conform to method recordValue's type parameter bounds [U]
expect {
val expect = new Expecty()
expect {
Some(23) == Some(22)
}
Cause error
error: inferred type arguments [scala.type] do not conform to method recordValue's type parameter bounds [U]
expect {
When your expectation is defined as field, it does not get printed:
val expected = Set(1, 2)
test("foo"){
expect(Set(1,2,3) == expected)
}
expect(Set(1,2,3) == expected)
| |
| false
Set(1, 2, 3)
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.