Skip to content

Commit 0b830ee

Browse files
committed
add test case for println
1 parent c5b6370 commit 0b830ee

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ test/example:
130130

131131
${CELL} -d -t riscv tests/examples/typecast.cell && ckb-debugger --bin typecast${exe} | grep "128-128"
132132

133+
${CELL} -d -t riscv tests/examples/println.cell && ckb-debugger --bin println${exe}
134+
133135
${CELL} -t riscv tests/examples/cell-data.cell && ckb-debugger --bin cell-data${exe}
134136
${CELL} -t riscv tests/examples/inputs.cell && ckb-debugger --bin inputs${exe}
135137
${CELL} -t riscv tests/examples/outputs.cell && ckb-debugger --bin outputs${exe}

tests/examples/println.cell

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import (
2+
"debug"
3+
)
4+
5+
func main() {
6+
debug.Println("1")
7+
debug.Println(1)
8+
debug.Println(1u8)
9+
debug.Println(1u16)
10+
debug.Println(1u32)
11+
debug.Println(1u64)
12+
debug.Println(1u128)
13+
debug.Println(1u256)
14+
return 0
15+
}

0 commit comments

Comments
 (0)