..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | import { Frame } from '../src/index';
import { expect } from 'chai';
import { data, header } from './support/people';
const frame = new Frame(data, header);
describe('info.ts', () => {
describe('Print size of frame', () => {
it('should print the size of the frame', () => {
const size = frame.size;
expect(size).to.equal(35);
});
});
describe('Print shape of frame', () => {
it('should print the shape of the frame', () => {
const shape = frame.shape;
expect(shape).to.equal('9 x 4');
});
});
describe('Print type of data in each column', () => {
it('should print the type of data in each column', () => {
frame.info();
});
});
describe('Print the element at rangeIndex 32', () => {
it('should print the element at rangeIndex 32', () => {
expect(frame.rangeIndex(32)).to.equal(null);
});
});
});
|
|