Skip to content
Browse files

updating docs from tests

  • Loading branch information...
1 parent bcb9da7 commit 6af97c94c19521a9f0fe4dca6c30bdd6764b6dc9 @fibo committed Mar 24, 2013
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
2 .gitmodules
@@ -1,3 +1,3 @@
[submodule "wiki"]
path = wiki
- url = git://github.com/fibo/algebra.wiki
+ url = git@github.com:fibo/algebra.wiki
View
22 test/Matrix.js
@@ -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
8 test/Real/Element.js
@@ -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
8 test/Ring.js
@@ -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
@@ -1 +1 @@
-Subproject commit e345220784503434624beb4f204deef1055e72c0
+Subproject commit a834765f0dc611406415cac7bf8fa49f95b9eb26

0 comments on commit 6af97c9

Please sign in to comment.
Something went wrong with that request. Please try again.