Permalink
Browse files

updating docs from tests

  • Loading branch information...
fibo committed Mar 24, 2013
1 parent bcb9da7 commit 6af97c94c19521a9f0fe4dca6c30bdd6764b6dc9
Showing with 12 additions and 30 deletions.
  1. +1 −1 .gitmodules
  2. +2 −20 test/Matrix.js
  3. +4 −4 test/Real/Element.js
  4. +4 −4 test/Ring.js
  5. +1 −1 wiki
View
@@ -1,3 +1,3 @@
[submodule "wiki"]
path = wiki
- url = git://github.com/fibo/algebra.wiki
+ url = git@github.com:fibo/algebra.wiki
View
@@ -9,28 +9,10 @@ var abstractMethod = algebra.util.abstractMethod;
var matrix = new Matrix();
describe('Matrix', function () {
- describe('constructor:', function () {
- it('works', function () {
- });
+ describe('Constructor', function () {
});
- describe('inheritance:', function () {
- it('', function () {
- });
- });
-
- describe('methods:', function () {
- describe('someAbstractMethod()', function () {
- it('is abstract', function () {
- //assert.ok(foo.someAbstractMethod === abstractMethod);
- });
- });
-
- describe('method1()', function () {
- it('does something', function () {
-
- });
- });
+ describe('Methods', function () {
});
});
View
@@ -11,15 +11,15 @@ var R = new RealField();
var n = new RealElement(5);
describe('RealElement', function () {
- describe('constructor:', function () {
+ describe('Constructor', function () {
it('accepts a number as single argument', function () {
var ten = new RealElement(10);
assert.ok(ten instanceof RealElement);
});
});
- describe('inheritance:', function () {
- it('from RingElement', function () {
+ describe('Inheritance', function () {
+ it('is a RingElement', function () {
assert.ok(n instanceof RingElement);
});
});
@@ -90,7 +90,7 @@ describe('RealElement', function () {
});
describe('ne(<number|RealElement>)', function () {
- it('is an alias of notEquals(<number|RealElement>', function () {
+ it('is an alias of notEquals()', function () {
assert.ok(n.eq === n.equals);
});
});
View
@@ -10,20 +10,20 @@ var abstractMethod = algebra.util.abstractMethod;
var ring = new Ring();
describe('Ring', function () {
- describe('constructor', function () {
- it('works', function () {
+ describe('Constructor', function () {
+ it('requires no argument', function () {
var ring = new Ring();
assert.ok(ring instanceof Ring);
});
});
- describe('inheritance', function () {
+ describe('Inheritance', function () {
it('is a Group', function () {
assert.ok(ring instanceof Group);
});
});
- describe('methods', function () {
+ describe('Methods', function () {
describe('getOne()', function () {
it('is an abstract method', function () {
assert.ok(ring.getOne === abstractMethod);
2 wiki
Submodule wiki updated from e34522 to a83476

0 comments on commit 6af97c9

Please sign in to comment.