Skip to content

Commit

Permalink
add test case for println
Browse files Browse the repository at this point in the history
  • Loading branch information
douyixuan committed Oct 14, 2024
1 parent c5b6370 commit 0b830ee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ test/example:

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

${CELL} -d -t riscv tests/examples/println.cell && ckb-debugger --bin println${exe}

${CELL} -t riscv tests/examples/cell-data.cell && ckb-debugger --bin cell-data${exe}
${CELL} -t riscv tests/examples/inputs.cell && ckb-debugger --bin inputs${exe}
${CELL} -t riscv tests/examples/outputs.cell && ckb-debugger --bin outputs${exe}
Expand Down
15 changes: 15 additions & 0 deletions tests/examples/println.cell
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import (
"debug"
)

func main() {
debug.Println("1")
debug.Println(1)
debug.Println(1u8)
debug.Println(1u16)
debug.Println(1u32)
debug.Println(1u64)
debug.Println(1u128)
debug.Println(1u256)
return 0
}

0 comments on commit 0b830ee

Please sign in to comment.