-
Notifications
You must be signed in to change notification settings - Fork 4
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
4 changed files
with
79 additions
and
2 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,68 @@ | ||
## 安装 | ||
|
||
via npm | ||
```shell | ||
npm -g i @woodenfish/random-data | ||
``` | ||
|
||
via yarn | ||
```shell | ||
yarn global add @woodenfish/random-data | ||
``` | ||
|
||
## 使用 | ||
|
||
### 在哪 | ||
|
||
程序总是在**当前目录**下生成测试数据。 | ||
|
||
比如我们要在 `test` 这个目录下生成测试数据,你需要准备两个文件 | ||
|
||
```shell | ||
test | ||
├── Main | ||
└── template.txt | ||
``` | ||
|
||
- `template.txt` 里面存放的是数据模板(类似 [graph示例](sample/graph.unlink.txt)) | ||
- `Main` 是标程的可执行文件(可以没有,就不会生成测试输出了,也就是没有`XXXX.out`) | ||
|
||
### 参数 | ||
|
||
只有一个参数,指明生成几份测试数据 | ||
|
||
### 示例 | ||
|
||
比如我们在 `test` 目录里面执行 | ||
|
||
``` | ||
random-data 10 | ||
``` | ||
|
||
将会得到 | ||
|
||
``` | ||
test | ||
├── Main | ||
├── template.10.in | ||
├── template.10.out | ||
├── template.1.in | ||
├── template.1.out | ||
├── template.2.in | ||
├── template.2.out | ||
├── template.3.in | ||
├── template.3.out | ||
├── template.4.in | ||
├── template.4.out | ||
├── template.5.in | ||
├── template.5.out | ||
├── template.6.in | ||
├── template.6.out | ||
├── template.7.in | ||
├── template.7.out | ||
├── template.8.in | ||
├── template.8.out | ||
├── template.9.in | ||
├── template.9.out | ||
└── template.txt | ||
``` |
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,3 +1,9 @@ | ||
## 0.0.5 | ||
|
||
1. 实现了一个简单的 cli 工具 | ||
|
||
因实际代码并未变更,所以没有上个版本的在线回顾。 | ||
|
||
## 0.0.4 | ||
|
||
1. 增加了一个新的约束类型 `alias` | ||
|
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
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