Sha256: fca2d7a1afae31663607f956134a4f447aaee0f85d828addc3c4c1440f2e18e5
Contents?: true
Size: 393 Bytes
Versions: 30
Compression:
Stored size: 393 Bytes
Contents
export function test_string_roundtrip(f) { const test = expected => { const actual = f(expected); if (actual === expected) return; throw new Error(`string roundtrip "${actual}" != "${expected}"`); }; test(''); test('a'); test('💖'); test('a longer string'); test('a longer 💖 string'); test('\uFEFFbar'); } export function identity(s) { return s; }
Version data entries
30 entries across 30 versions & 1 rubygems