mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
13 lines
375 B
JavaScript
13 lines
375 B
JavaScript
var assert = require('assert'),
|
|
math = require('../../../index')(),
|
|
Selector = math.chaining.Selector;
|
|
|
|
describe('select', function() {
|
|
|
|
it ('should construct a selector', function () {
|
|
assert.ok(math.select(45) instanceof Selector);
|
|
assert.ok(math.select(math.complex(2,3)) instanceof Selector);
|
|
assert.ok(math.select() instanceof Selector);
|
|
});
|
|
|
|
}); |