typeof_eq_undefined: { options = { comparisons: true, typeofs: true, } input: { var a = typeof b != "undefined"; b = typeof a != "undefined"; var c = typeof d.e !== "undefined"; var f = "undefined" === typeof g; g = "undefined" === typeof f; var h = "undefined" == typeof i.j; } expect: { var a = "undefined" != typeof b; b = void 0 !== a; var c = void 0 !== d.e; var f = "undefined" == typeof g; g = void 0 === f; var h = void 0 === i.j; } } typeof_eq_undefined_ie8: { options = { comparisons: true, ie8: true, typeofs: true, } input: { var a = typeof b != "undefined"; b = typeof a != "undefined"; var c = typeof d.e !== "undefined"; var f = "undefined" === typeof g; g = "undefined" === typeof f; var h = "undefined" == typeof i.j; } expect: { var a = "undefined" != typeof b; b = void 0 !== a; var c = "undefined" != typeof d.e; var f = "undefined" == typeof g; g = void 0 === f; var h = "undefined" == typeof i.j; } } undefined_redefined: { options = { comparisons: true, typeofs: true, } input: { function f(undefined) { var n = 1; return typeof n == "undefined"; } } expect_exact: "function f(undefined){var n=1;return void 0===n}" } undefined_redefined_mangle: { options = { comparisons: true, typeofs: true, } mangle = {} input: { function f(undefined) { var n = 1; return typeof n == "undefined"; } } expect_exact: "function f(n){var r=1;return void 0===r}" } value='committer'>committer
path: root/tests/challenge.scm
AgeCommit message (Expand)Author
2021-01-16guix: Move narinfo code from substitute script to module....This separation between the code for dealing with narinfos from the code doing that for a purpose should make things clearer, and better support components other that the substitute script in using this code. This is just moving the code around, no code should have been significantly changed. * guix/scripts/substitute.scm (<narinfo>): Move record type to (guix narinfo). (fields->alist, narinfo-hash-algorithm+value, narinfo-hash->sha256, narinfo-signature->canonical-sexp, narinfo-maker, read-narinfo, narinfo-sha256, valid-narinfo?, write-narinfo, narinfo->string, string->narinfo, equivalent-narinfo?, supported-compression?, compresses-better?, narinfo-best-uri): Move procedures to (guix narinfo). (%compression-methods): Move variable to (guix narinfo). * guix/narinfo.scm: New file. * Makefile.am (MODULES): Add it. * po/guix/POTFILES.in: Add 'guix/narinfo.scm'. Christopher Baines