Skip to content

Commit

Permalink
tst 测试环境 #45
Browse files Browse the repository at this point in the history
  • Loading branch information
LDmoxeii committed Apr 17, 2024
1 parent 542fafe commit c73593c
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": true
}
21 changes: 21 additions & 0 deletions .vscode/tasks.json
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
}
}
]
}
2 changes: 1 addition & 1 deletion is.ts → eid/is.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Aut, Cdt, Dbt, Id, Rec } from "./typ"
import type { Aut, Cdt, Dbt, Id, Rec } from "./typ.ts"

export const lim_code = 999999
export const lim_amt = 999999
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions readme.md
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`
10 changes: 10 additions & 0 deletions tst/ont.test.ts
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("江苏", "南京")
])
})

0 comments on commit c73593c

Please sign in to comment.