CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
set.js32 linesDownload Raw Back to test
1'use strict';2 3var test = require('tape');4var parse = require('../').parse;5 6test('set env vars', function (t) {7	t.same(8		parse('ABC=444 x y z'),9		['ABC=444', 'x', 'y', 'z']10	);11	t.same(12		parse('ABC=3\\ 4\\ 5 x y z'),13		['ABC=3 4 5', 'x', 'y', 'z']14	);15	t.same(16		parse('X="7 8 9" printx'),17		['X=7 8 9', 'printx']18	);19	t.same(20		parse('X="7 8 9"; printx'),21		['X=7 8 9', { op: ';' }, 'printx']22	);23	t.same(24		parse('X="7 8 9"; printx', function () {25			t.fail('should not have matched any keys');26		}),27		['X=7 8 9', { op: ';' }, 'printx']28	);29 30	t.end();31});32 
basant307/AI_Governance_Project · CoolFace