Skip to content

Commit f08e9a0

Browse files
author
Lingdong Huang
committed
change helloworld example
1 parent 71e9b01 commit f08e9a0

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Syntax</h1>
2828

2929
<h2>天地,好在否!/ HELLO WORLD <span class="play-btn">▶&#xFE0E;</span></h2>
3030

31-
<table class="tryit" data-prgm="helloworld"><tr>
31+
<table class="tryit" data-prgm="helloworld+"><tr>
3232
<td class="in-box" valign="top"></td><td class="out-box" valign="top"></td>
3333
</tr></table>
3434

test/calendar.test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
var assert = require("assert");
2+
var { compile } = require("../src/parser");
3+
4+
describe("calendar", () => {
5+
describe("言彼之時刻", () => {
6+
it("should test calendar stuff", () => {
7+
assert.strictEqual(
8+
compile(
9+
"吾嘗觀「「曆法」」之書。方悟「言彼之時刻」之義。施「言彼之時刻」於四千七百一十四。書之"
10+
),
11+
""
12+
);
13+
});
14+
});
15+
16+
describe("num2hanzi(0.5)", () => {
17+
it("should test some more calendar stuff", () => {
18+
assert.strictEqual(num2hanzi(0.5), "五分");
19+
});
20+
});
21+
});

0 commit comments

Comments
 (0)