Giter Site home page Giter Site logo

shen-test's Introduction

ShenTest

ShenTest is a simple, expressive testing framework for Shen programs.

Status: Alpha

It’s still cooking. Here’s a quick taste to whet your appetite:

(load "shen-test.shen")

(testing "(vector N)"
  given
    N is 3
    V is (vector N)
  verify
    V satisfies vector?
    (limit V) is N)

(testing "(<-vector V N)"
  given V is (vector-> (vector 2) 1 a-previously-stored-value)
  verify
    (<-vector V 1) is a-previously-stored-value
    (<-vector V -1) raises an error
    (<-vector V 0) raises "cannot access 0th element of a vector"
    (<-vector V 2) raises "vector element not found"
    (<-vector V 3) raises an error)

A few more examples are in sample-tests.shen.

License

ShenTest is Copyright © 2015 Greg Spurrier. It is distributed under the terms of the MIT License. See LICENSE.txt for the details.

shen-test's People

Contributors

gregspurrier avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.