Make lang-test0 work
This commit is contained in:
parent
0d9890cfac
commit
87b6e0aba1
@ -1,8 +1,13 @@
|
|||||||
|
//
|
||||||
|
// 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 { }
|
||||||
|
|
||||||
function msg(s: string): void {
|
function msg(s: string): void {
|
||||||
// console.log(s)
|
//console.log(s)
|
||||||
//basic.pause(50);
|
//basic.pause(50);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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