Skip to content

Commit

Permalink
test: update test file
Browse files Browse the repository at this point in the history
  • Loading branch information
shawlleyw committed Jan 24, 2024
1 parent 2a648b0 commit 5e75eb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"check": "tsc --noEmit",
"build": "tsc"
"build": "tsc",
"test": "cd test/ && tsc && ava micromark-tabbed.test.js && ava remark-tabbed.test.js"
},
"keywords": [
"remark",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions test/inputs/1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=== "C++"

```cpp
vector<int> ans(n + 1);
for (int i=0; i < n; i++) ans[pi[i]]++;
Expand All @@ -8,7 +8,7 @@
```

=== "Python"

```python
ans = [0] * (n + 1)
for i in range(0, n):
Expand Down
8 changes: 0 additions & 8 deletions test/remark-tabbed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,3 @@ Here are 2 versions of code.`,
<p>Here are 2 versions of code.</p>`,
message: "2 code tabs",
});

for (let i = 1; i <= 2; ++i) {
testCase({
input: fromPath(`./inputs/${i}.md`),
expected: "",
message: 'tabbed with many codes'
});
}

0 comments on commit 5e75eb1

Please sign in to comment.