Browse files

pasta al pestooooooooooo (a Milano)

  • Loading branch information...
1 parent 8a58f80 commit b93eadd9f4d9b522c91775bfd2a7ff5dae2a0bbf @fibo committed Mar 11, 2013
Showing with 6 additions and 4 deletions.
  1. +2 −0 lib/Exception/InvalidArguments.js
  2. +1 −1 lib/Real/Element.js
  3. +3 −3 test/Real/Vector.js
View
2 lib/Exception/InvalidArguments.js
@@ -7,6 +7,8 @@ function InvalidArguments() {
// TODO also provide a listener
console.error('Invalid arguments');
+ // TODO per ora sto sul grezzo
+ console.error(arguments);
};
module.exports = InvalidArguments;
View
2 lib/Real/Element.js
@@ -17,7 +17,7 @@ function RealElement() {
_num = arguments[0];
}
else {
- new InvalidArgumentsException();
+ new InvalidArgumentsException(arguments);
}
self.num = function () { return _num; };
View
6 test/Real/Vector.js
@@ -2,10 +2,10 @@
var assert = require('assert');
var algebra = require('../../index.js');
-var Vector = algebra.Vector;
var RealVector = algebra.Real.Vector;
-var Real = algebra.Real.Element;
-var Rn = algebra.Real.VectorSpace;
+var Real = algebra.Real.Element;
+var Rn = algebra.Real.VectorSpace;
+var Vector = algebra.Vector;
var R3 = new Rn(3);
var R4 = new Rn(4);

0 comments on commit b93eadd

Please sign in to comment.