News for hackers. Stuff that matters.
Re:Pyret: A new programming language from the creators of Ra... by anaphor on Saturday November 09, 2013 @03:17PM (#6702998)
Have you thought about adding some kind of QuickCheck-ish model where test cases can be randomly generated for various types?
Re:Pyret: A new programming language from the creators of Ra... by skrishnamurthi on Sunday November 10, 2013 @08:19AM (#6706329)
Yes, of course, we've thought about it. Equally importantly, we have a "satisfies" keyword for stating checks about properties. (See the example on the Pyret home page.) We use test oracles extensively in teaching; see these two assignments: http://cs.brown.edu/courses/cs019/2012/assignments/sortacle , http://cs.brown.edu/courses/cs019/2012/assignments/oracle .
Re:Pyret: A new programming language from the creators of Ra... by tel on Saturday November 09, 2013 @07:56PM (#6704478)
This exists in Haskell's doctest library

    -- | Documentation goes here
    --
    -- > 2 + 2 == 4
    -- True
    --
    -- prop> \lst -> reverse (reverse lst) == lst