1. Jonathan Fine
  2. javascript-for-python-programmers

Commits

jf3243  committed 4a2f30b

Minor changes after testing in Windows.

  • Participants
  • Parent commits 615e2cf
  • Branches javascript-exercises

Comments (0)

Files changed (4)

File core-javascript/javascript-exercises/answers/object-exercises.js

View file
-var something;
+var something = null;
 
 TEST('if not found', function()
 {

File core-javascript/javascript-exercises/counters/counters.html

View file
 <html>
 <head>
-<script src="library.js"></script>
+<script src="../lib/library.js"></script>
 <script src="counters.js"></script>
 <link rel="stylesheet" type="text/css" href="counters.css" />
 <title>JS for Python: example: counters</title>

File core-javascript/javascript-exercises/lib/testtools.js

View file
     try {
         code();
     } catch (x) {
-        log('! Exception at ' + x.fileName +':' + x.lineNumber);
-        log('! [' + x.name + '] '  + x.message );
+        log('    ! Exception at ' + x.fileName +':' + x.lineNumber);
+        log('    ! [' + x.name + '] '  + x.message );
     }
+    log('');                    // Blank line at end of each test.
 
 };
 
 var assert = function(arg){
     _assertion_count += 1;
     if (!arg){
-        var msg = '! assert ' + _assertion_count + ' has failed';
+        var msg = '    ! assert ' + _assertion_count + ' has failed';
         log(msg);
     }
 };

File core-javascript/javascript-exercises/runme.bat

View file
-jsdb -load lib/library -load lib/testtools.js -load help.js
+jsdb -load lib/library.js -load lib/testtools.js -load help.js