qua 0.75.0

Structure-aware query CLI for the Quarb engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
//! A `!=` on a null key is told (spec: Null keys; the user's rulings
//! of 2026-11-28, relayed by lang: "ok, proceed as recommended.", to
//! keep the rule and end its silence, and of the negated equality,
//! "Agreed on both"). In a correlation's condition a comparison that
//! reads the other side of the join is unknown where a side holds no
//! value, and the pair is left out as an equality leaves it. Under
//! `!=` that is seldom what was asked: the entry's warning counts,
//! among the pairs the correlation judged, those the comparison read
//! as it is anywhere else would have admitted, and names the two
//! ways to ask for them. The answer does not move. Every negative
//! operator is told the same (`!==`, `!*=`; the negated orderings
//! and the two of containment by the ruling of 2026-11-29), and a
//! negated test of any kind as the negated equality.

use std::path::PathBuf;

/// A fleet and the inventory that should describe it: one machine
/// whose owner the inventory lacks (`web-002`), one whose owner the
/// fleet lacks (`web-004`), one both lack (`web-005`), one the two
/// agree on and one they differ on.
fn mounts(tag: &str) -> (PathBuf, [String; 2]) {
    let dir = std::env::temp_dir().join(format!("quarb-null-key-{}-{tag}", std::process::id()));
    let _ = std::fs::remove_dir_all(&dir);
    std::fs::create_dir_all(&dir).unwrap();
    std::fs::write(
        dir.join("fleet.json"),
        r#"[{"name": "web-001", "owner": "core"},
            {"name": "web-002", "owner": "edge"},
            {"name": "web-003", "owner": "lab"},
            {"name": "web-004", "owner": null},
            {"name": "web-005", "owner": null}]"#,
    )
    .unwrap();
    std::fs::write(
        dir.join("cmdb.json"),
        r#"[{"name": "web-001", "owner": "core"},
            {"name": "web-002", "owner": null},
            {"name": "web-003", "owner": "data"},
            {"name": "web-004", "owner": "ops"},
            {"name": "web-005", "owner": null},
            {"name": "web-009", "owner": null}]"#,
    )
    .unwrap();
    let named = [
        format!("fleet={}", dir.join("fleet.json").to_str().unwrap()),
        format!("cmdb={}", dir.join("cmdb.json").to_str().unwrap()),
    ];
    (dir, named)
}

fn run(query: &str, mounts: &[String; 2], flags: &[&str]) -> std::process::Output {
    std::process::Command::new(env!("CARGO_BIN_EXE_qua"))
        .env("QUARB_LOCALE", "C")
        .args(flags)
        .arg(query)
        .args(mounts)
        .stdin(std::process::Stdio::null())
        .output()
        .unwrap()
}

/// The answer's lines and what was told beside it.
fn told(query: &str, mounts: &[String; 2]) -> (Vec<String>, Vec<String>) {
    let out = run(query, mounts, &[]);
    assert!(
        out.status.success(),
        "{query}: {}",
        String::from_utf8_lossy(&out.stderr)
    );
    let lines = |bytes: &[u8]| -> Vec<String> {
        String::from_utf8_lossy(bytes)
            .lines()
            .map(str::to_string)
            .collect()
    };
    (lines(&out.stdout), lines(&out.stderr))
}

/// The line of the plain form, whole: the entry, the count, the
/// comparison as written, the two ways with the entry's own names,
/// and the door.
const LINE: &str = "warning NULL_KEY ($$1): '<=>' left out 2 pairs because '::owner != \
                    $$0::owner' was unknown, a side holding no value: test after the correlation \
                    ('@| [$$1::owner != ::owner]'), or add a test of presence to the condition \
                    ('|| ::owner = null' for the candidate, '|| $$0::owner = null' for the \
                    driver). Spell it another way: qua man NULL_KEY";

#[test]
fn a_not_equal_on_a_null_key_is_told_under_every_form() {
    let (_dir, m) = mounts("forms");
    // the machines whose owners differ: `web-003` alone, as before.
    // `web-002` and `web-004` are the two pairs left out, a side of
    // each holding no owner; `web-005`, where neither holds one, is
    // not counted: none does not differ from none.
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && ::owner != $$0::owner] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    assert_eq!(lines, [LINE]);
    // every candidate
    let (rows, lines) = told(
        "/fleet/* <=>* /cmdb/*[::name = $$0::name && ::owner != $$0::owner] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    assert_eq!(lines, [LINE.replace("'<=>'", "'<=>*'")]);
    // the outer forms keep every driver, its slot null, and are told
    // the same
    for form in ["<=>?", "<=>*?"] {
        let (rows, lines) = told(
            &format!(
                "/fleet/* {form} /cmdb/*[::name = $$0::name && ::owner != $$0::owner] \
                 | %(::name; theirs = $$1::owner)"
            ),
            &m,
        );
        assert_eq!(
            rows,
            [
                "%(name = \"web-001\"; theirs = null)",
                "%(name = \"web-002\"; theirs = null)",
                "%(name = \"web-003\"; theirs = \"data\")",
                "%(name = \"web-004\"; theirs = null)",
                "%(name = \"web-005\"; theirs = null)",
            ],
            "{form}"
        );
        assert_eq!(
            lines,
            [LINE.replace("'<=>'", &format!("'{form}'"))],
            "{form}"
        );
    }
}

#[test]
fn the_two_ways_the_line_names_answer_the_pairs() {
    let (_dir, m) = mounts("ways");
    // the same test after the correlation
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name] @| [$$1::owner != ::owner] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-002", "web-003", "web-004"]);
    assert_eq!(lines, [""; 0]);
    // a test of presence for each side, in the condition: quiet, the
    // pairs admitted; it takes the pair neither side knows as well
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name \
         && (::owner != $$0::owner || ::owner = null || $$0::owner = null)] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-002", "web-003", "web-004", "web-005"]);
    assert_eq!(lines, [""; 0]);
}

#[test]
fn the_pairs_counted_are_the_pairs_judged() {
    let (_dir, m) = mounts("judged");
    // no equality beside it: every candidate is offered. A plain
    // entry stops at its witness, so `web-001` counts the one null it
    // met before `data`, `web-002` and `web-003` none (`core` is
    // their witness), and the two drivers with no owner the three
    // candidates that have one, each: 1 + 3 + 3.
    let (rows, lines) = told("/fleet/* <=> /cmdb/*[::owner != $$0::owner] | ::name", &m);
    assert_eq!(rows, ["web-001", "web-002", "web-003"]);
    assert_eq!(lines.len(), 1, "{lines:?}");
    assert!(lines[0].contains("'<=>' left out 7 pairs"), "{lines:?}");
    // every candidate judged: the three with no owner for each of
    // the three drivers that have one, and the three with an owner
    // for each of the two that have none: 9 + 6
    let (rows, lines) = told(
        "/fleet/* <=>* /cmdb/*[::owner != $$0::owner] | ::name @| count",
        &m,
    );
    assert_eq!(rows, ["8"]);
    assert_eq!(lines.len(), 1, "{lines:?}");
    assert!(lines[0].contains("'<=>*' left out 15 pairs"), "{lines:?}");
}

/// The two other negative comparisons of a key (the user's word of
/// 2026-11-28: "Yes, cover !== and !*= over a null key"): a text
/// that does not contain another, a pattern that does not match.
#[test]
fn every_negative_comparison_of_a_key_is_told() {
    let (_dir, m) = mounts("negative");
    // a candidate whose owner does not hold the driver's: the same
    // two pairs with no owner on one side, and here the pair with
    // none on either, a missing text holding nothing
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && ::owner !*= $$0::owner] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    assert_eq!(
        lines,
        [LINE
            .replace("2 pairs", "3 pairs")
            .replace("'::owner != $$0::owner'", "'::owner !*= $$0::owner'")
            .replace("[$$1::owner != ::owner]", "[$$1::owner !*= ::owner]")]
    );
    // the same test after the correlation answers the three
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name] @| [$$1::owner !*= ::owner] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-002", "web-003", "web-004", "web-005"]);
    assert_eq!(lines, [""; 0]);
    // a pattern the driver's owner does not match: a comparison of
    // another shape, the ways in their general form
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && $$0::owner !== (/co/)] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-002", "web-003"]);
    assert_eq!(lines.len(), 1, "{lines:?}");
    assert!(
        lines[0].contains("left out 2 pairs because '$$0::owner !== (/co/)' was unknown"),
        "{lines:?}"
    );
    // the negated orderings, and the two of containment (the user's
    // ruling of 2026-11-29, relayed by lang: every negative operator
    // is told; these six left their pairs out in silence). Each
    // leaves out the three pairs a side of which holds no owner, and
    // the test after the correlation answers them with its own
    for (op, rows, after) in [
        (
            "!<",
            vec!["web-001"],
            vec!["web-001", "web-002", "web-004", "web-005"],
        ),
        ("!<=", vec![], vec!["web-002", "web-004", "web-005"]),
        (
            "!>",
            vec!["web-001", "web-003"],
            vec!["web-001", "web-002", "web-003", "web-004", "web-005"],
        ),
        (
            "!>=",
            vec!["web-003"],
            vec!["web-002", "web-003", "web-004", "web-005"],
        ),
        (
            "!<<=",
            vec!["web-003"],
            vec!["web-002", "web-003", "web-004", "web-005"],
        ),
        (
            "!>>=",
            vec!["web-003"],
            vec!["web-002", "web-003", "web-004", "web-005"],
        ),
    ] {
        let (answer, lines) = told(
            &format!(
                "/fleet/* <=> /cmdb/*[::name = $$0::name && ::owner {op} $$0::owner] | ::name"
            ),
            &m,
        );
        assert_eq!(answer, rows, "{op}");
        assert_eq!(
            lines,
            [LINE
                .replace("2 pairs", "3 pairs")
                .replace(
                    "'::owner != $$0::owner'",
                    &format!("'::owner {op} $$0::owner'")
                )
                .replace(
                    "[$$1::owner != ::owner]",
                    &format!("[$$1::owner {op} ::owner]")
                )],
            "{op}"
        );
        let (answer, lines) = told(
            &format!(
                "/fleet/* <=> /cmdb/*[::name = $$0::name] @| [$$1::owner {op} ::owner] | ::name"
            ),
            &m,
        );
        assert_eq!(answer, after, "{op}");
        assert_eq!(lines, [""; 0], "{op}");
    }
    // the sides the other way round, and the way after the
    // correlation with them
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && $$0::owner !< ::owner] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-001", "web-003"]);
    assert_eq!(
        lines,
        [LINE
            .replace("2 pairs", "3 pairs")
            .replace("'::owner != $$0::owner'", "'$$0::owner !< ::owner'")
            .replace("[$$1::owner != ::owner]", "[::owner !< $$1::owner]")]
    );
    // a negated negative ordering is the ordering, and quiet
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && !(::owner !< $$0::owner)] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    assert_eq!(lines, [""; 0]);
    // the positive tests leave the same pairs out, and that is asked
    for condition in ["$$0::owner == (/co/)", "::owner *= $$0::owner"] {
        let (_, lines) = told(
            &format!("/fleet/* <=> /cmdb/*[::name = $$0::name && {condition}] | ::name"),
            &m,
        );
        assert_eq!(lines, [""; 0], "{condition}");
    }
}

#[test]
fn a_negated_equality_is_told_as_a_not_equal_is() {
    let (_dir, m) = mounts("negated");
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && !(::owner = $$0::owner)] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    // the comparison as it was written, the same count, the same ways
    assert_eq!(
        lines,
        [LINE.replace("'::owner != $$0::owner'", "'!(::owner = $$0::owner)'")]
    );
    // a negation of a negation is the equality, and quiet
    for (condition, answer) in [
        ("!(!(::owner = $$0::owner))", "web-001"),
        ("!(::owner != $$0::owner)", "web-001"),
    ] {
        let (rows, lines) = told(
            &format!("/fleet/* <=> /cmdb/*[::name = $$0::name && {condition}] | ::name"),
            &m,
        );
        assert_eq!(rows, [answer], "{condition}");
        assert_eq!(lines, [""; 0], "{condition}");
    }
}

/// A negated test of any kind is told as the negated equality is
/// (the user's ruling of 2026-11-29, relayed by lang, of `!(a < b)`,
/// `!(a == b)`, `!(a *= b)` and `!(a <<= b)`, which left the same
/// pairs out in silence: "ok, have impl build it"). The test after
/// the correlation is named with the operator that holds where the
/// negated one does not.
#[test]
fn a_negated_test_of_any_kind_is_told() {
    let (_dir, m) = mounts("negated-tests");
    for (condition, rows, negative) in [
        ("!(::owner < $$0::owner)", vec!["web-001"], "!<"),
        ("!(::owner >= $$0::owner)", vec!["web-003"], "!>="),
        ("!(::owner == $$0::owner)", vec!["web-003"], "!=="),
        ("!(::owner *= $$0::owner)", vec!["web-003"], "!*="),
        ("!(::owner <<= $$0::owner)", vec!["web-003"], "!<<="),
        ("!(::owner >>= $$0::owner)", vec!["web-003"], "!>>="),
    ] {
        let (answer, lines) = told(
            &format!("/fleet/* <=> /cmdb/*[::name = $$0::name && {condition}] | ::name"),
            &m,
        );
        assert_eq!(answer, rows, "{condition}");
        assert_eq!(
            lines,
            [LINE
                .replace("2 pairs", "3 pairs")
                .replace("'::owner != $$0::owner'", &format!("'{condition}'"))
                .replace(
                    "[$$1::owner != ::owner]",
                    &format!("[$$1::owner {negative} ::owner]")
                )],
            "{condition}"
        );
    }
    // the sides the other way round
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && !($$0::owner <= ::owner)] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    assert_eq!(
        lines,
        [LINE
            .replace("2 pairs", "3 pairs")
            .replace("'::owner != $$0::owner'", "'!($$0::owner <= ::owner)'")
            .replace("[$$1::owner != ::owner]", "[::owner !<= $$1::owner]")]
    );
    // a pattern, and a negation over a connective, which reaches the
    // tests under it: comparisons of another shape, the ways in
    // their general form
    for (condition, rows, pairs) in [
        ("!($$0::owner == (/co/))", vec!["web-002", "web-003"], 2),
        (
            r#"!(::owner < $$0::owner || ::owner = "x")"#,
            vec!["web-001"],
            3,
        ),
        (
            r#"!(::owner < $$0::owner && ::name != "web-009")"#,
            vec!["web-001"],
            3,
        ),
    ] {
        let (answer, lines) = told(
            &format!("/fleet/* <=> /cmdb/*[::name = $$0::name && {condition}] | ::name"),
            &m,
        );
        assert_eq!(answer, rows, "{condition}");
        assert_eq!(lines.len(), 1, "{condition}: {lines:?}");
        assert!(
            lines[0].contains(&format!(
                "left out {pairs} pairs because '{condition}' was unknown"
            )) && lines[0].contains("('@| [$$1::p != ::p]')"),
            "{condition}: {lines:?}"
        );
    }
    // the test after the correlation answers the pairs with its own
    let (rows, lines) = told(
        r#"/fleet/* <=> /cmdb/*[::name = $$0::name] @| [!($$1::owner < ::owner || $$1::owner = "x")] | ::name"#,
        &m,
    );
    assert_eq!(rows, ["web-001", "web-002", "web-004", "web-005"]);
    assert_eq!(lines, [""; 0]);
    // quiet: a negation of a negation, a negated negative under a
    // connective (an equality is asked), and a negation that leaves
    // no pair out
    for (condition, rows) in [
        ("!(!(::owner < $$0::owner))", vec!["web-003"]),
        (
            r#"!(::owner != $$0::owner || ::owner = "x")"#,
            vec!["web-001"],
        ),
        (
            r#"!(::owner = $$0::owner && ::name = "web-009")"#,
            vec!["web-001", "web-002", "web-003", "web-004", "web-005"],
        ),
    ] {
        let (answer, lines) = told(
            &format!("/fleet/* <=> /cmdb/*[::name = $$0::name && {condition}] | ::name"),
            &m,
        );
        assert_eq!(answer, rows, "{condition}");
        assert_eq!(lines, [""; 0], "{condition}");
    }
}

#[test]
fn what_is_no_not_equal_on_a_key_stays_quiet() {
    let (_dir, m) = mounts("quiet");
    for (condition, answer) in [
        // an equality leaves the same pairs out, and that is asked
        ("::owner = $$0::owner", vec!["web-001"]),
        // an ordering
        ("::owner < $$0::owner", vec!["web-003"]),
        // the literal null is the test of presence, no key comparison
        ("::owner != null", vec!["web-001", "web-003", "web-004"]),
    ] {
        let (rows, lines) = told(
            &format!("/fleet/* <=> /cmdb/*[::name = $$0::name && {condition}] | ::name"),
            &m,
        );
        assert_eq!(rows, answer, "{condition}");
        assert_eq!(lines, [""; 0], "{condition}");
    }
    // a `!=` every side of which holds a value, beside an equality a
    // null leaves unknown: the equality is what refuses the pair
    let (rows, lines) = told(
        "/fleet/* <=>* /cmdb/*[::name != $$0::name && ::owner = $$0::owner] | ::name",
        &m,
    );
    assert_eq!(rows, [""; 0]);
    assert_eq!(lines, [""; 0]);
}

#[test]
fn the_line_names_the_entry_and_the_comparison_as_written() {
    let (_dir, m) = mounts("written");
    // the driver's side first: the test after the correlation keeps
    // the order of the sides
    let (_, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && $$0::owner != ::owner] | ::name",
        &m,
    );
    assert_eq!(
        lines,
        [LINE
            .replace("'::owner != $$0::owner'", "'$$0::owner != ::owner'")
            .replace("[$$1::owner != ::owner]", "[::owner != $$1::owner]")]
    );
    // an entry under a mark is named by it, in the site and in the
    // test after the correlation, which answers as written
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && ::owner != $$0::owner] .c | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    assert_eq!(lines, [LINE.replace("$$1", "$$.c")]);
    let (rows, _) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name] .c @| [$$.c::owner != ::owner] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-002", "web-003", "web-004"]);
    // a comparison that is no plain pair of reads: the ways in their
    // general form, the property written `p`
    let (rows, lines) = told(
        "/fleet/* | .o(::owner) <=> /cmdb/*[::name = $$0::name && ::owner != $.o] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-003"]);
    assert_eq!(
        lines,
        [
            "warning NULL_KEY ($$1): '<=>' left out 2 pairs because '::owner != $.o' was \
             unknown, a side holding no value: test after the correlation ('@| [$$1::p != \
             ::p]'), or add a test of presence to the condition ('|| ::p = null' for the \
             candidate, '|| $$0::p = null' for the driver). Spell it another way: qua man \
             NULL_KEY"
        ]
    );
    // a value on the other side: a key comparison all the same
    let (rows, lines) = told(
        "/fleet/* <=> /cmdb/*[::name = $$0::name && $$0::owner != \"core\"] | ::name",
        &m,
    );
    assert_eq!(rows, ["web-002", "web-003"]);
    assert_eq!(lines.len(), 1, "{lines:?}");
    assert!(
        lines[0].contains("left out 2 pairs because '$$0::owner != \"core\"' was unknown"),
        "{lines:?}"
    );
}

#[test]
fn the_warning_fails_a_run_that_asks_for_that_and_has_its_page() {
    let (_dir, m) = mounts("exit");
    let query = "/fleet/* <=> /cmdb/*[::name = $$0::name && ::owner != $$0::owner] | ::name";
    let out = run(query, &m, &["--fail-on-warning"]);
    assert_eq!(out.status.code(), Some(3));
    assert_eq!(String::from_utf8_lossy(&out.stdout).trim(), "web-003");
    // the page behind the door
    let page = std::process::Command::new(env!("CARGO_BIN_EXE_qua"))
        .env("QUARB_LOCALE", "C")
        .args(["man", "NULL_KEY"])
        .stdin(std::process::Stdio::null())
        .output()
        .unwrap();
    assert!(page.status.success());
    let page = String::from_utf8_lossy(&page.stdout).to_string();
    assert!(page.starts_with("NULL_KEY — warning, spec"), "{page}");
    assert!(page.contains("a negated ordering"), "{page}");
    assert!(page.contains("a negated test"), "{page}");
    assert!(page.contains("`|| $$0::p = null` for the driver"), "{page}");
}