mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
14 lines
359 B
Plaintext
14 lines
359 B
Plaintext
let script = include str "./include_example.sh";
|
|
assert |
|
|
script == "#!/usr/bin/env bash
|
|
echo \"included\"";
|
|
|;
|
|
let expected = "IyEvdXNyL2Jpbi9lbnYgYmFzaAplY2hvICJpbmNsdWRlZCI=";
|
|
let base64 = include b64 "./include_example.sh";
|
|
assert |
|
|
base64 == expected;
|
|
|;
|
|
let base64 = include b64urlsafe "./include_example.sh";
|
|
assert |
|
|
base64 == expected;
|
|
|; |