mirror of
https://github.com/actions/setup-python.git
synced 2024-11-14 07:31:09 +07:00
19 lines
362 B
JavaScript
19 lines
362 B
JavaScript
|
(function () {
|
||
|
"use strict";
|
||
|
|
||
|
var atob = require('.');
|
||
|
var encoded = "SGVsbG8sIFdvcmxkIQ=="
|
||
|
var unencoded = "Hello, World!";
|
||
|
/*
|
||
|
, encoded = "SGVsbG8sIBZM"
|
||
|
, unencoded = "Hello, 世界"
|
||
|
*/
|
||
|
|
||
|
if (unencoded !== atob(encoded)) {
|
||
|
console.log('[FAIL]', unencoded, atob(encoded));
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
console.log('[PASS] all tests pass');
|
||
|
}());
|