This commit is contained in:
chrosey
2017-09-13 07:52:34 +02:00
parent a1f16c37f4
commit 2340b0226b
24621 changed files with 2912161 additions and 149 deletions
+22
View File
@@ -0,0 +1,22 @@
var assert = require('assert');
var python = require('../lib/python').shell;
var runTests = function() {
// Run a couple commands in series
python('print "Hello World!"', function(err, data) {
assert.equal('Hello World!\n', data);
console.log('test 1 ok!');
python('print "Goodbye, Cruel World!"', function (err, data) {
assert.equal('Goodbye, Cruel World!\n', data);
console.log('test 2 ok!');
python('quit()');
});
});
// Run one in parallel with the first two
python('print "Asynch"', function (err, data) {
assert.equal('Asynch\n', data);
console.log('test 3 ok!');
});
};
runTests();