Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 68e7359

Browse files
[新增] 新增项目 README 文件
1 parent e3444f5 commit 68e7359

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

‎README.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# LeetCode 算法题集
2+
3+
Ruixe 的 LeetCode 算法题集,使用 TypeScript 语言,集成 Jest 单元测试
4+
5+
## 运行单元测试
6+
7+
### 安装依赖
8+
9+
```shell
10+
npm install
11+
```
12+
13+
### 测试所有题解
14+
15+
```shell
16+
npm run test
17+
```
18+
19+
### 测试指定题解
20+
21+
```shell
22+
npx run jest [题目编号]
23+
```
24+
25+
注:题解源码与单元测试文件的命名需要包含题目编号,如 `[题目编号]_[英文小驼峰题目名称].test.ts`
26+
27+
## 目录结构
28+
29+
```
30+
├── src - 题目与题解源码
31+
└── tests - 单元测试文件
32+
└── testCases - 测试用例
33+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /