RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
21
zeroidc/vendor/wasm-bindgen/tests/headless/strings.js
vendored
Normal file
21
zeroidc/vendor/wasm-bindgen/tests/headless/strings.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user