Comments (9)
Without annotations, the metamodel and anonymous functions it's going to be rather rudimentary (especially without annotations).
from ceylon-sdk.
I agree. But its going to be rather hard to test the sdk without something.
We can retrofit that something to be better once we've got annotations.
from ceylon-sdk.
where should we put this code? it should be written in Ceylon of course, and it will be useful for sdk and also ceylonjs. The ceylon.language project already has some assert functions but to use them I have to copy them to the separate ceylonjs modules and it would be so much better to start using the exact same stuff. And that will force us to make module loading work in ceylonjs...
from ceylon-sdk.
I've made a start on something junit-like for the purposes of testing ceylon.math
. So right now it's in a com.redhat package in ceylon-sdk (or will be once I push ;-)
Can we legitimately use it for ceylon.language? I mean, that's a little bit circular.
from ceylon-sdk.
mmmm you're right... I guess we'll stick with the simple asserts there.
from ceylon-sdk.
I've pushed the basic test harness I mentioned if anyone wants to take a look. Current drawbacks:
- it doesn't work in Eclipse, only from
ant
. - The lack of annotations and reflection means you basically have to register the test methods by hand in the subclass of
Suite
(seeMathSuite
).
from ceylon-sdk.
I also have such a module myself, I'll push it to Herd.
from ceylon-sdk.
Now that the JVM compiler supports methods with defaulted parameters and type parameters it should be possible to improve the test harness (specifically the comparison function uses for asserts can now be something like boolean compare<T>(T expect, T got)
).
from ceylon-sdk.
This was fixed by @thradec I believe.
from ceylon-sdk.
Related Issues (20)
- http.server.Request.read() and "unterminated" strings HOT 1
- Ceylon logging should support loggers with class name HOT 1
- JavaList should throw IOOBE for bad indexes HOT 2
- change pattern for attributes in `ceylon.html` HOT 4
- Regex stickiness
- ceylon.test::parameters is unintuitive when test is wrapped in a class HOT 1
- ceylon.test::parameters is unintuitive when test is wrapped in a class
- make JavaMap, JavaSet, JavaList serializable
- JDK 9 adds SSLEngineResult.HandshakeStatus.NEED_UNWRAP_AGAIN
- Loading files from the classpath throws FileSystemNotFoundException
- Bad class file error using ceylon.file 1.3.4-SNAPSHOT
- ceylon.time.iso8601::parseDayOfMonth and parseDate fail for leap day HOT 5
- ceylon.time.Period compare and equals incompatible HOT 2
- ceylon.time.Period should be `Invertible` HOT 4
- Decimal == AnythingElse causes assertion failure HOT 3
- use 'new' enum style instead of old 'object' style HOT 3
- ceylon.time.Duration should satisfy Summable, Invertible, and Comparable
- assertThateException -> ExceptionAssert can't handle member exception classes
- promlem with parsing february 29 in leap year HOT 2
- ceylon test -F fails with AssertionError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceylon-sdk.