aboutsummaryrefslogtreecommitdiffstats
path: root/test_.lua
diff options
context:
space:
mode:
authordvs12024-10-28 13:38:02 +1000
committerdvs12024-10-28 13:38:02 +1000
commit515d421beae0668562a6005140b3461fdc2850fa (patch)
treef76bb2eb41890aac5649385e56ee53913dc25c93 /test_.lua
parentFix the PHP example. (diff)
downloadJackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.zip
JackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.tar.gz
JackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.tar.bz2
JackOnAllDevices-515d421beae0668562a6005140b3461fdc2850fa.tar.xz
Hello -> G'day, coz I'm an Aussie, and it helps test embedded quote marks.
Diffstat (limited to '')
-rwxr-xr-xtest_.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/test_.lua b/test_.lua
index 80e1786..1a892a9 100755
--- a/test_.lua
+++ b/test_.lua
@@ -96,7 +96,7 @@ print(__[[#!/bin/NoSuchCommand
96print('') 96print('')
97 97
98__[[#!/bin/bash 98__[[#!/bin/bash
99 echo "Hello world from bash." 99 echo "G'day world from bash."
100]]:log():show():Do() 100]]:log():show():Do()
101print('') 101print('')
102 102
@@ -105,19 +105,19 @@ print(__[[#!/usr/bin/tcc -run
105 105
106 int main() 106 int main()
107 { 107 {
108 printf("Hello world from C.\n"); 108 printf("G'day world from C.\n");
109 return 0; 109 return 1;
110 } 110 }
111]]:log():show():Do().status) 111]]:log():show():Do().status)
112print('') 112print('')
113 113
114__[[#!/usr/bin/env luajit 114__[[#!/usr/bin/env luajit
115 print('Hello ' .. "world " .. [=[from]=] .. ' Lua.') 115 print("G'day " .. "world " .. [=[from]=] .. ' Lua.')
116]]:log():show():Do() 116]]:log():show():Do()
117print('') 117print('')
118 118
119__[[#!/usr/bin/perl 119__[[#!/usr/bin/perl
120 print "Hello world from perl.\n"; 120 print "G'day world from perl.\n";
121]]:log():show():Do() 121]]:log():show():Do()
122print('') 122print('')
123 123
@@ -129,12 +129,12 @@ print('')
129 129
130-- Note no indent for Python, coz whitespace is significant. 130-- Note no indent for Python, coz whitespace is significant.
131__[[#!/usr/bin/env python3 131__[[#!/usr/bin/env python3
132print("Hello world from python.") 132print("G'day world from python.")
133]]:log():show():Do() 133]]:log():show():Do()
134print('') 134print('')
135 135
136__[[#!/usr/bin/ruby 136__[[#!/usr/bin/ruby
137 puts "Hello world from ruby." 137 puts "G'day world from ruby."
138]]:log():show():Do() 138]]:log():show():Do()
139print('') 139print('')
140 140