H2b review r1 part 1 item 5: owed-say's description names no hand-act log
Builds: design 47 H2b §832 6.
This commit is contained in:
@@ -18,6 +18,13 @@ func rep(c string) string { return strings.Repeat(c, 64) }
|
||||
// values (the golden texts are its output; the field order is the contract's now, so values are compared decoded), and the
|
||||
// refusals it made.
|
||||
func TestWantsAreWhatTheEarlierCodecWrote(t *testing.T) {
|
||||
// Review r1 part 1 item 5 (design 47 H2b §832 6.): owed-say's description says no act is written in a hand-act log, which no
|
||||
// line gives and the assigner does not do.
|
||||
t.Run("owed-say's description names no hand-act log", func(t *testing.T) {
|
||||
if d := seat.VerbDescription(seat.VerbOwedSay); d == "" || strings.Contains(d, "hand-act") {
|
||||
t.Errorf("owed-say's description is %q, want one that names no hand-act log", d)
|
||||
}
|
||||
})
|
||||
a, b, c, d := "src2:"+rep("a"), "src2:"+rep("b"), "sha256:"+rep("c"), "sha256:"+rep("d")
|
||||
sameJSON := func(t *testing.T, got []byte, want string) {
|
||||
t.Helper()
|
||||
|
||||
@@ -94,7 +94,7 @@ func VerbDescription(verb string) string {
|
||||
case VerbOwed:
|
||||
return "Every event the assigner says on this seat that the bus refused or did not acknowledge and still owes (design 47 H2b §832 6.): its message id, when it was first owed, how many times it was said again and when it is said again next."
|
||||
case VerbOwedSay:
|
||||
return "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.); the act is written in the hand-act log first."
|
||||
return "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.)."
|
||||
case VerbOwedDrop:
|
||||
return "Drop an owed event the bus will never take, with every event owed behind it in its order, doing for each what the bus taking it would have done, then clear its finding (design 47 H2b §832 6.); the act and why are written in the hand-act log first."
|
||||
}
|
||||
|
||||
@@ -464,7 +464,7 @@
|
||||
{
|
||||
"name": "owed-say",
|
||||
"class": "act",
|
||||
"description": "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.); the act is written in the hand-act log first.",
|
||||
"description": "Say the first owed event of one id's order now, its delay set back to the first pace (design 47 H2b §832 6.).",
|
||||
"input": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user