fix(spec): rule parts cited in bookspec's words in the web tests
The sub-reference check reads 'INVARIANT n' as the old vocabulary and WB-assist-6 has no numbered parts; the comments now cite what exists. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d474051bf
commit
d7d3458501
3 files changed
+8
-8
No files matched your search
@@ -320,7 +320,7 @@ fn copied(h: &Harness<'_, App>) -> Vec<String> {
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// WB-assist-6 INVARIANT 1: off by default, nothing but the switch and
|
||||
/// WB-assist-6: off by default, nothing but the switch and
|
||||
/// words; and no switch at all when the window cannot offer them.
|
||||
#[test]
|
||||
fn the_switch_is_off_by_default_and_an_owner_without_web_assistants_has_none() {
|
||||
@@ -348,7 +348,7 @@ fn the_switch_is_off_by_default_and_an_owner_without_web_assistants_has_none() {
|
||||
);
|
||||
}
|
||||
|
||||
/// WB-assist-6 INVARIANTS 2, 3: turned on, the progress in plain words,
|
||||
/// WB-assist-6: turned on, the progress in plain words,
|
||||
/// then the address with Copy, the three steps for Claude, and for ChatGPT
|
||||
/// and the rest the plain "we haven't tested this yet".
|
||||
#[test]
|
||||
@@ -460,7 +460,7 @@ fn the_progress_steps_are_in_order() {
|
||||
);
|
||||
}
|
||||
|
||||
/// WB-assist-6 INVARIANT 4: the relay cannot be reached (nothing is lost,
|
||||
/// WB-assist-6: the relay cannot be reached (nothing is lost,
|
||||
/// the window and the local assistants work), the clock is wrong (it needs
|
||||
/// the person), the certificate is waited for.
|
||||
#[test]
|
||||
|
||||
@@ -591,7 +591,7 @@ fn order_for(r: &Rig, authority: &Authority) -> OrderRequest<'static> {
|
||||
}
|
||||
}
|
||||
|
||||
/// WB-link-4 (INVARIANT 6): the relay's list can name any directory, and
|
||||
/// WB-link-4 (invariant 6): the relay's list can name any directory, and
|
||||
/// the app contacts only a host compiled into it: no request is made for
|
||||
/// any other, however it is spelled.
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
|
||||
@@ -628,7 +628,7 @@ async fn a_directory_on_a_host_the_app_does_not_know_is_refused_before_any_reque
|
||||
assert!(r.acme.state.lock().unwrap().new_accounts.is_empty());
|
||||
}
|
||||
|
||||
/// WB-link-4 (INVARIANT 6): an account kept for a directory that is not on
|
||||
/// WB-link-4 (invariant 6): an account kept for a directory that is not on
|
||||
/// the list is not used; a new one is made at the authority named.
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
|
||||
async fn a_kept_account_for_an_unlisted_directory_is_not_used() {
|
||||
|
||||
@@ -593,7 +593,7 @@ async fn a_stalled_handshake_is_dropped_and_no_door_means_no_service() {
|
||||
assert!(w.assistant(&host).await.unwrap().ends_with(BODY));
|
||||
}
|
||||
|
||||
/// WB-link-4 (INVARIANTS 7 and 8 of certs.rs): the relay names the
|
||||
/// WB-link-4 (invariants 7 and 8 of certs.rs): the relay names the
|
||||
/// authorities, so a certificate from one it made up is refused (the
|
||||
/// program trusts the public roots, not the relay's list): nothing is
|
||||
/// stored or served, the state says so, and a lifetime over the cap is
|
||||
@@ -634,7 +634,7 @@ async fn a_certificate_from_an_authority_the_relay_made_up_is_never_stored_or_se
|
||||
assert!(!w.dir.path().join("link/cert.json").exists());
|
||||
}
|
||||
|
||||
/// WB-link-4 (INVARIANT 7): a certificate kept on disk that the program
|
||||
/// WB-link-4 (invariant 7): a certificate kept on disk that the program
|
||||
/// would not trust is discarded and ordered again, and "a new address"
|
||||
/// does not bring it back.
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
|
||||
@@ -705,7 +705,7 @@ async fn a_name_taken_on_the_first_claim_settles_before_the_certificate_and_the_
|
||||
assert!(w.assistant(&host).await.unwrap().ends_with(BODY));
|
||||
}
|
||||
|
||||
/// WB-link-4 (INVARIANT 9 of certs.rs): a certificate is not served after
|
||||
/// WB-link-4 (invariant 9 of certs.rs): a certificate is not served after
|
||||
/// its end, even when it cannot be renewed, and the state says it is gone.
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
|
||||
async fn an_expired_certificate_is_not_served_and_the_state_says_so() {
|
||||
|
||||
Reference in new issue
Block a user