Giter VIP home page Giter VIP logo

Comments (9)

chochos avatar chochos commented on July 17, 2024

Without annotations, the metamodel and anonymous functions it's going to be rather rudimentary (especially without annotations).

from ceylon-sdk.

tombentley avatar tombentley commented on July 17, 2024

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.

chochos avatar chochos commented on July 17, 2024

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.

tombentley avatar tombentley commented on July 17, 2024

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.

chochos avatar chochos commented on July 17, 2024

mmmm you're right... I guess we'll stick with the simple asserts there.

from ceylon-sdk.

tombentley avatar tombentley commented on July 17, 2024

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 (see MathSuite).

from ceylon-sdk.

FroMage avatar FroMage commented on July 17, 2024

I also have such a module myself, I'll push it to Herd.

from ceylon-sdk.

tombentley avatar tombentley commented on July 17, 2024

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.

FroMage avatar FroMage commented on July 17, 2024

This was fixed by @thradec I believe.

from ceylon-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.