-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"deno.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "deno test", | ||
"type": "shell", | ||
"command": "deno test tst", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true, | ||
}, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"panel": "dedicated", | ||
"showReuseMessage": true, | ||
"clear": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# 【从零开发】主义主义网站 系列视频 | ||
# 【从零开发】主义主义网站 | ||
|
||
[视频列表](https://space.bilibili.com/483417795/video) | ||
## 代码结构 | ||
|
||
* `ont` 基础代码 `ontic` | ||
* `eid` 核心代码 `eidetic` | ||
* `pra` 业务代码 `praxic` | ||
* `tst` 测试代码 `tests` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { assertEquals } from "https://deno.land/std/testing/asserts.ts" | ||
import { is_adm } from "../ont/adm.ts" | ||
|
||
Deno.test("adm", () => { | ||
assertEquals([true, false, false], [ | ||
is_adm("江苏", "苏州"), | ||
is_adm("江苏", "重庆"), | ||
is_adm("江苏", "南京") | ||
]) | ||
}) |