Skip to content

Commit

Permalink
classlib++
Browse files Browse the repository at this point in the history
- add Object methods
- add Nil methods
- add Boolean, True, False methods
- add Magnitude, Number, SimpleNumber, Integer, Float methods
- add Char methods
- add Symbol methods
- add Ref methods
- add AbstractFunction, Function methods
- add Stream, Thread, Routine, PauseStream, Task methods (not implemented)
- add Collection, SequenceableCollection, ArrayedCollection methods
- add Array, RawArray, String methods
- add Set, Dictionary, IdentityDictionary, Environment, Event methods (not implemented)
- refine tests
- fix browser test page
- build v0.0.10
  • Loading branch information
mohayonao committed Apr 25, 2014
1 parent 64b20b0 commit f4bd398
Show file tree
Hide file tree
Showing 70 changed files with 33,953 additions and 5,450 deletions.
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ module.exports = function(grunt) {
if (tests.length) {
grunt.config.data.jshint.test = {
options: {
expr: true,
expr : true,
loopfunc: true,
maxlen : 256,
globals: {
sc : true,
context : true,
describe : true,
it : true,
chai : true,
sinon : true,
expect : true,
before : true,
Expand Down Expand Up @@ -254,12 +256,11 @@ module.exports = function(grunt) {
clearRequireCache();

global.expect = chai.expect;
global.chai = chai;
global.sinon = sinon;
global.sc = { VERSION: grunt.config.data.pkg.version };
global.sc.C = require("./src/const");

require("./src/sc/test/utils");

if (cover) {
coverageVar = "$$cov_" + Date.now() + "$$";
instrumenter = new istanbul.Instrumenter({ coverageVariable: coverageVar });
Expand All @@ -268,6 +269,8 @@ module.exports = function(grunt) {
global[coverageVar] = {};
}

require("./src/sc/test/utils");

if (!reporter) {
reporter = "spec";
}
Expand Down Expand Up @@ -362,9 +365,6 @@ module.exports = function(grunt) {
});
tmpl = tmpl.replace("#{TESTS}", tests.join("\n"));

consts = grunt.file.read("src/const.js").trim();
tmpl = tmpl.replace("#{CONSTS}", consts);

grunt.file.write("docs/report/test/index.html", tmpl);
}

Expand Down
5 changes: 4 additions & 1 deletion assets/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
SCScript.install(function(sc) {
window.sc = sc;
});
#{CONSTS}
</script>
<script>
mocha.setup("bdd");
$(function() {
mocha.run();
});
</script>
<script src="../../../src/const.js"></script>
<script src="../../../src/sc/test/utils.js"></script>
#{TESTS}
</head>
<body>
Expand Down
Loading

0 comments on commit f4bd398

Please sign in to comment.