Sindbad~EG File Manager

Current Path : /usr/local/src/clamav-1.0.9/libclamav_rust/.cargo/vendor/wasm-bindgen/tests/headless/
Upload File :
Current File : //usr/local/src/clamav-1.0.9/libclamav_rust/.cargo/vendor/wasm-bindgen/tests/headless/strings.js

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;
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists