Source code
Revision control
Copy as Markdown
Other Tools
[semantic-embedder-input-items.tentative.https.window.html]
[embed() accepts a {type: "text", value} item]
expected: FAIL
[embed() accepts a mixed sequence of strings and items]
expected: FAIL
[embed() rejects an item with an unknown type]
expected: FAIL
[embed() rejects an item without a type]
expected: FAIL
[embed() rejects an item without a value]
expected: FAIL
[embed(null) rejects instead of embedding the string "null"]
expected: FAIL
[embed(undefined) rejects instead of embedding the string "undefined"]
expected: FAIL
[embed({}) rejects instead of embedding "[object Object\]"]
expected: FAIL
[embed() rejects a nested array instead of embedding its string form]
expected: FAIL
[embed() rejects a sequence with an object item that is not an input]
expected: FAIL
[embed() still stringifies a number]
expected: FAIL
[embed() still stringifies a boolean]
expected: FAIL
[embed([\]) resolves with no embeddings]
expected: FAIL