Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
添加测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
hbybyyang committed Jun 27, 2020
1 parent 5e68402 commit 3090985
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 供测试/js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 使用 import 语法需要 `babel` 或者 `-r esm`
import lib_esm from './lib_esm'
var lib_node = require('./lib_node')
var 中文变量 = 1

// 输入 lib_esm.zw
// 输入 lib_node.zw
// 输入 zw

console.log(lib_node.加法(1)(2) == lib_esm.加法(1)(2))
6 changes: 6 additions & 0 deletions 供测试/js/lib_esm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
中文: 1,
另一个中文: 1,
汉字: 1,
加法: a => b => a + b
}
7 changes: 7 additions & 0 deletions 供测试/js/lib_node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
中文: 1,
另一个中文: 1,
汉字: 1,
加法: a => b => a + b

}

0 comments on commit 3090985

Please sign in to comment.