Sha256: 7fe0c88075ed4c27a71271f9d1215a87eedb7eff93876bea51d07d4b7fa49988

Contents?: true

Size: 219 Bytes

Versions: 29

Compression:

Stored size: 219 Bytes

Contents

/// Throws an error with [description] if [a] !== [b]
function assertEq(description, a, b) {
    if (a !== b) {
        throw new Error(`Assertion failed (${a} != ${b}): ${description}`);
    }
}

export { assertEq };

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hematite-0.1.18 assets/js/assertions.mjs
hematite-0.1.17 assets/js/assertions.mjs
hematite-0.1.16 assets/js/assertions.mjs
hematite-0.1.15 assets/js/assertions.mjs
hematite-0.1.14 assets/js/assertions.mjs
hematite-0.1.13 assets/js/assertions.mjs
hematite-0.1.12 assets/js/assertions.mjs
hematite-0.1.11 assets/js/assertions.mjs
hematite-0.1.10 assets/js/assertions.mjs
hematite-0.1.9 assets/js/assertions.mjs
hematite-0.1.8 assets/js/assertions.mjs
hematite-0.1.7 assets/js/assertions.mjs
hematite-0.1.6 assets/js/assertions.mjs
hematite-0.1.5 assets/js/assertions.mjs
hematite-0.1.4 assets/js/assertions.mjs
hematite-0.1.3 assets/js/assertions.mjs
hematite-0.1.2 assets/js/assertions.mjs
hematite-0.0.12 assets/js/assertions.mjs
hematite-0.0.11 assets/js/assertions.mjs
hematite-0.0.10 assets/js/assertions.mjs