summaryrefslogtreecommitdiff
path: root/apps/examples/bastest/tests/test16.bas
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-07 15:03:03 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-07 15:03:03 -0600
commitb20c2c13f229704f5b4b9a43d8323f24e18977f2 (patch)
tree7e2daa8004160827a8b9d19c92ddaacc3f8d7b63 /apps/examples/bastest/tests/test16.bas
parent1c5e93117d6951dc65d4914ee8e9507af143d2b4 (diff)
downloadpx4-nuttx-b20c2c13f229704f5b4b9a43d8323f24e18977f2.tar.gz
px4-nuttx-b20c2c13f229704f5b4b9a43d8323f24e18977f2.tar.bz2
px4-nuttx-b20c2c13f229704f5b4b9a43d8323f24e18977f2.zip
BAS: Rename examples/bas to examples/bastest. Hook into build and configuration system. Finish ROMFS logic
Diffstat (limited to 'apps/examples/bastest/tests/test16.bas')
-rw-r--r--apps/examples/bastest/tests/test16.bas10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/examples/bastest/tests/test16.bas b/apps/examples/bastest/tests/test16.bas
new file mode 100644
index 000000000..809137d75
--- /dev/null
+++ b/apps/examples/bastest/tests/test16.bas
@@ -0,0 +1,10 @@
+a=1 : b=2
+print "a=";a;"b=";b
+swap a,b
+print "a=";a;"b=";b
+dim a$(1,1),b$(1,1)
+a$(1,0)="a" : b$(0,1)="b"
+print "a$(1,0)=";a$(1,0);"b$(0,1)=";b$(0,1)
+swap a$(1,0),b$(0,1)
+print "a$(1,0)=";a$(1,0);"b$(0,1)=";b$(0,1)
+