Make lang-test0 work
This commit is contained in:
parent
0d9890cfac
commit
87b6e0aba1
@ -1,3 +1,8 @@
|
|||||||
|
//
|
||||||
|
// Note that this is supposed to run from command line.
|
||||||
|
// Do not use anything besides basic.pause, control.inBackground, console.log
|
||||||
|
//
|
||||||
|
|
||||||
//% shim=ksrt::panic
|
//% shim=ksrt::panic
|
||||||
function panic(code2: number): void { }
|
function panic(code2: number): void { }
|
||||||
|
|
||||||
@ -79,15 +84,11 @@ var unusedInit = incrXyz();
|
|||||||
|
|
||||||
assert(xyz == 13, "init2")
|
assert(xyz == 13, "init2")
|
||||||
|
|
||||||
|
|
||||||
testClass()
|
testClass()
|
||||||
|
|
||||||
basic.showLeds(`
|
basic.showNumber(1)
|
||||||
# # . # #
|
|
||||||
# # . # #
|
|
||||||
. . # . .
|
|
||||||
# . . . #
|
|
||||||
. # # # .
|
|
||||||
`)
|
|
||||||
|
|
||||||
console.log("ALL TESTS OK")
|
console.log("ALL TESTS OK")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user