Adding a test robot method

This commit is contained in:
deadprogram 2013-10-18 22:32:23 -07:00
parent 4e192e4199
commit 8d75066062
4 changed files with 24 additions and 11 deletions

13
LICENSE Normal file
View File

@ -0,0 +1,13 @@
Copyright (c) 2013 The Hybrid Group
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,18 +1,18 @@
# cylon [![Build Status](https://secure.travis-ci.org/deadprogram/cylon.png?branch=master)](http://travis-ci.org/deadprogram/cylon)
A small robotics framework based on nactor
A JavaScript robotics framework using node.js and nactor
## Getting Started
Install the module with: `npm install cylon`
```javascript
var cylon = require('cylon');
cylon.awesome(); // "awesome"
cylon.robot(); // "awesome"
```
```coffee-script
cylon = require 'cylon'
cylon.awesome() // "awesome"
cylon.robot() // "awesome"
```
## Documentation
@ -28,4 +28,4 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
_(Nothing yet)_
## License
Copyright (c) 2013 Ron Evans. Licensed under the Apache 2.0 license.
Copyright (c) 2013 The Hybrid Group. Licensed under the Apache 2.0 license.

View File

@ -2,11 +2,11 @@
* cylon
* cylonjs.com
*
* Copyright (c) 2013 Ron Evans
* Copyright (c) 2013 The Hybrid Group
* Licensed under the Apache 2.0 license.
###
'use strict';
exports.awesome = ->
'awesome'
exports.robot = ->
'irobot'

View File

@ -30,7 +30,7 @@ describe "basic tests", ->
data[0].should.be.equal obj
# Now on to a `real` test
it "cylon should be awesome", ->
cylon.should.have.keys 'awesome'
cylon.awesome.should.be.a 'function'
cylon.awesome().should.be.equal 'awesome'
it "cylon should create a robot", ->
cylon.should.have.keys 'robot'
cylon.robot.should.be.a 'function'
cylon.robot().should.be.equal 'irobot'