Skip to content

Commit 2a30201

Browse files
author
MikhailArkhipov
committed
Baselines
1 parent bab4239 commit 2a30201

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/test/language/tokenizer.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,11 @@ suite('Language.Tokenizer', () => {
7676
assert.equal(tokens.getItemAt(i).type, TokenType.Comment);
7777
}
7878
});
79+
test('Unknown token', async () => {
80+
const t = new Tokenizer();
81+
const tokens = t.tokenize('.');
82+
assert.equal(tokens.count, 1);
83+
84+
assert.equal(tokens.getItemAt(0).type, TokenType.Unknown);
85+
});
7986
});

src/test/markdown/restTextConverter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function testConversion(fileName: string): Promise<void> {
2929
const cvt = new RestTextConverter();
3030
const file = path.join(srcPythoFilesPath, fileName);
3131
const source = await fs.readFile(`${file}.pydoc`, 'utf8');
32-
const actual = cvt.toMarkdown(source);
32+
const actual = cvt.toMarkdown(source, true);
3333
const expected = await fs.readFile(`${file}.md`, 'utf8');
3434
compareFiles(expected, actual);
3535
}

src/test/pythonFiles/markdown/scipy.spatial.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ tesselation (N-dim simplices), convex hull facets, and Voronoi ridges
4242
```
4343
For Delaunay triangulations and convex hulls, the neighborhood
4444
structure of the simplices satisfies the condition:
45-
45+
```html
4646
`tess.neighbors[i,j]` is the neighboring simplex of the i-th
4747
simplex, opposite to the j-vertex. It is -1 in case of no
4848
neighbor.
4949

50+
```
5051
Convex hull facets also define a hyperplane equation:
5152
```html
5253
(hull.equations[i,:-1] * coord).sum() + hull.equations[i,-1] == 0

0 commit comments

Comments
 (0)