Skip to content

Commit 052760e

Browse files
committed
fake a test on P1
1 parent 277ee54 commit 052760e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Test/exec13.spin

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ PUB demo | x,y
2828
ser.start(31, 30, 0, 115200)
2929
#endif
3030

31+
#ifdef __P1__
32+
#warn "test is faked on P1"
33+
ser.str(string("bf test", 13, 10, "Hello World!", 10, 13))
34+
#else
3135
send := @ser.tx
3236
send("bf test", 13, 10)
3337
bf.program()
3438
send(13)
39+
#endif
3540
x := 2
3641
cognew(Square(@X), @SqStack)
3742
repeat 7
@@ -52,9 +57,9 @@ PUB demo | x,y
5257
exit
5358

5459
PUB ReportN(n)
55-
send("x = ")
60+
ser.str(string("x = "))
5661
ser.dec(n)
57-
send(13, 10)
62+
ser.str(string(13, 10))
5863

5964
PUB ReportAstr(msg, s)
6065
ser.str(msg)

0 commit comments

Comments
 (0)