;; AUTO-GENERATED from spec/tests/hyperscript-upstream-tests.json
;; DO NOT EDIT — regenerate with:
;;   python3 tests/playwright/generate-sx-tests.py --emit-pages

(defcomp ()
  (~docs/page :title "Hyperscript: comparisonOperator (40 tests — 0 runnable)"
    (p :style "color:#57534e;margin-bottom:1rem" "Live cards for the upstream comparisonOperator tests. 0 of 40 are reproducible in-browser; the remainder show their source for reference.")
    (p :style "color:#78716c;font-size:0.875rem;margin-bottom:1rem"
      "Theme: " (a :href "/sx/(applications.(hyperscript.gallery-expressions))"
        :style "color:#7c3aed" "expressions"))
    (div :style "display:flex;flex-direction:column"
      (~hyperscript/hs-test-card
  :name "is a works with instanceof fallback"
  :html "<div id='d1' _='on click if I am a Element put \\\"yes\\\" into me'></div>"
  :action "find('#d1').dispatchEvent('click')"
  :check "toHaveText(\"yes\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is a Node works via instanceof"
  :html "<div id='d1' _='on click if I am a Node put \\\"yes\\\" into me'></div>"
  :action "find('#d1').dispatchEvent('click')"
  :check "toHaveText(\"yes\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not a works with instanceof fallback"
  :html "<div id='d1' _='on click if \\\"hello\\\" is not a Element put \\\"yes\\\" into me'></div>"
  :action "find('#d1').dispatchEvent('click')"
  :check "toHaveText(\"yes\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is ignoring case works"
  :html ""
  :action "await run(\"'; await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not ignoring case works"
  :html ""
  :action "await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "contains ignoring case works"
  :html ""
  :action "await run(\"'; await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "matches ignoring case works"
  :html ""
  :action "await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "starts with works"
  :html ""
  :action "await run(\"'; await run(\"'; await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "ends with works"
  :html ""
  :action "await run(\"'; await run(\"'; await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "does not start with works"
  :html ""
  :action "await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "does not end with works"
  :html ""
  :action "await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "starts with null is false"
  :html ""
  :action "await run(\"null starts with '; await run(\"null does not start with '"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "ends with null is false"
  :html ""
  :action "await run(\"null ends with '; await run(\"null does not end with '"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "starts with ignoring case works"
  :html ""
  :action "await run(\"'; await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "ends with ignoring case works"
  :html ""
  :action "await run(\"'; await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "starts with coerces to string"
  :html ""
  :action "await run(\"123 starts with '; await run(\"123 starts with '"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "ends with coerces to string"
  :html ""
  :action "await run(\"123 ends with '; await run(\"123 ends with '"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is between works"
  :html ""
  :action "await run(\"5 is between 1 and 10\"; await run(\"1 is between 1 and 10\"; await run(\"10 is between 1 and 10\"; await run(\"0 is between 1 and 10\"; await run(\"11 is between 1 and 10\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not between works"
  :html ""
  :action "await run(\"5 is not between 1 and 10\"; await run(\"0 is not between 1 and 10\"; await run(\"11 is not between 1 and 10\"; await run(\"1 is not between 1 and 10\"; await run(\"10 is not between 1 and 10\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "between works with strings"
  :html ""
  :action "await run(\"'; await run(\"'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "I am between works"
  :html ""
  :action "await run(\"I am between 1 and 10\"; await run(\"I am between 1 and 10\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "I am not between works"
  :html ""
  :action "await run(\"I am not between 1 and 10\"; await run(\"I am not between 1 and 10\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "precedes works"
  :html "<div id='a'></div><div id='b'></div><div id='c'></div>"
  :action ""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "follows works"
  :html "<div id='a'></div><div id='b'></div><div id='c'></div>"
  :action ""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "does not precede works"
  :html "<div id='a'></div><div id='b'></div>"
  :action ""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "does not follow works"
  :html "<div id='a'></div><div id='b'></div>"
  :action ""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "precedes with null is false"
  :html ""
  :action "await run(\"null precedes null\"; await run(\"null does not precede null\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "I precede works"
  :html "<div id='a' _=\\\"on click if I precede #b put 'yes' into me\\\"></div><div id='b'></div>"
  :action "find('#a').dispatchEvent('click')"
  :check "toHaveText(\"yes\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is really works without equal to"
  :html ""
  :action "await run(\"2 is really 2\"; await run(\"2 is really '"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not really works without equal to"
  :html ""
  :action "await run(\"2 is not really '; await run(\"2 is not really 2\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is equal works without to"
  :html ""
  :action "await run(\"2 is equal 2\"; await run(\"2 is equal 1\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not equal works without to"
  :html ""
  :action "await run(\"2 is not equal 2\"; await run(\"2 is not equal 1\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "am works as alias for is"
  :html ""
  :action "await run(\"2 am 2\"; await run(\"2 am 1\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not undefined still works as equality"
  :html ""
  :action "await run(\"5 is not undefined\"; await run(\"null is not undefined\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not null still works as equality"
  :html ""
  :action "await run(\"5 is not null\"; await run(\"null is not null\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is falls back to boolean property when rhs is undefined"
  :html "<input id='c1' type='checkbox' checked='checked'/><input id='c2' type='checkbox'/>"
  :action "await run(\"#c1 is checked\"; await run(\"#c2 is checked\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is not falls back to boolean property when rhs is undefined"
  :html "<input id='c1' type='checkbox' checked='checked'/><input id='c2' type='checkbox'/>"
  :action "await run(\"#c1 is not checked\"; await run(\"#c2 is not checked\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is boolean property works with disabled"
  :html "<button id='b1' disabled>Disabled</button><button id='b2'>Enabled</button>"
  :action "await run(\"#b1 is disabled\"; await run(\"#b2 is disabled\"; await run(\"#b2 is not disabled\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is still does equality when rhs variable exists"
  :html ""
  :action "await run(\"x is y\"; await run(\"x is y\""
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "is boolean property works in where clause"
  :html "<input class='cb' type='checkbox' checked='checked'/><input class='cb' type='checkbox'/><input class='cb' type='checkbox' checked='checked'/>"
  :action "await run(\".cb where it is checked\""
  :check "toBe(2)"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))"))))
