We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beb48a7 commit 87788bfCopy full SHA for 87788bf
test/BASE64/BASE64.LUA
@@ -0,0 +1 @@
1
+../../util/BASE64.LUA
test/BASE64/test.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env sh
2
+set -e
3
+INTERP=${INTERP:-lua}
4
+TEST="BASE64 ENCODE"
5
+SCRIPT="BASE64.LUA"
6
+
7
+GNU=$(base64 $SCRIPT)
8
+LUA=$($INTERP $SCRIPT $SCRIPT)
9
10
+if [ "$GNU" = "$LUA" ]; then
11
+ echo "$TEST: PASS"
12
+else
13
+ echo "$TEST: FAIL"
14
+ exit 1
15
+fi
16
17
+TEST="BASE64 DECODE"
18
19
+LUA=$(echo $GNU | $INTERP $SCRIPT -d)
20
+GNU=$(cat $SCRIPT)
21
22
23
24
+ exit 0
25
26
27
28
0 commit comments