Code Monkey home page Code Monkey logo

x-common's Introduction

x-Common

Shared metadata for Exercism exercises. The doc/ subdirectory contains all documentation that is not specific to a language track.

Contributing Guide

Please see the contributing guide

Test Data Format

Each problem can have a file .json containing standard test data. This data can be incoporated into test programs manually or extracted by a program. The file contains a single JSON object with a key for documentation and keys for various tests that may be meaningful for a problem.

The documentation uses the key "#" with a list of strings as the value. These strings document how the problem readme (<problem>.md) is generally interpreted in test programs across different languages. In addition to a mainstream implementation path, this information can also document significant variations.

Each test case has the the following keys: description: which will be used to name each generated test 'variable names': one or more variable names with values which will be passed to the solution method expected: the expected result (this would be -1 when we expect an exception) msg: a nice message for the failing case

Automated Tests

The only thing that we're testing at the moment, is whether or not shared test data is valid json.

If you want to run this before you commit, you will need to install jq. Then run the script with:

bin/jsonlint

License

The MIT License (MIT)

Copyright (c) 2014 Katrina Owen, [email protected]

x-common's People

Contributors

kytrinyx avatar jeremy-w avatar pminten avatar soniakeys avatar etrepum avatar mike-hewitson avatar henrik avatar vosechu avatar jrdnull avatar legalizeadulthood avatar sjakobi avatar betegelse avatar kotp avatar locks avatar matthewrankin avatar lsimoneau avatar macintux avatar dog avatar douglasbrunner avatar anthonygreen avatar verdammelt avatar mbertheau avatar masters3d avatar eightbitraptor avatar morphatic avatar patbl avatar pavling avatar prathamesh-sonpatki avatar hola-soy-milk avatar clashthebunny avatar

Watchers

James Cloos 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.