From 4e12f6437fca6b45bf6f8a3bac9c7ae8a7ea5806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Seta?= Date: Thu, 26 Mar 2020 09:10:35 -0400 Subject: [PATCH] an example/test orgmode file --- tests.org | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tests.org diff --git a/tests.org b/tests.org new file mode 100644 index 0000000..6f4b845 --- /dev/null +++ b/tests.org @@ -0,0 +1,41 @@ +* ob-sclang tests + +These blocks are best evaluated inside emacs. + +Post a simple line: +#+begin_src sclang +"boo".postln; +#+end_src + +This python code does not need to be evaluated beforehand. +#+name: frompy +#+begin_src python :session sc :results value +[1,2,3,4] +#+end_src + +#+RESULTS: frompy +| 1 | 2 | 3 | 4 | + + + +#+name: tbl +| boo | 5 | 9 | +| good | 7 | xa | + +#+begin_src sclang :session boo :dir "/tmp" :var x=10 y=11 z=1.1 table=tbl tb=frompy + x.postln; + x.class.postln; + y.postln; + y.class.postln; + z.postln; + z.class.postln; + table.postln; + table.class.postln; + tb.postln; + tb.class.postln; +#+end_src + +* Local Variables :noexport: +# Local Variables: +# org-confirm-babel-evaluate: nil +# End: