diff --git a/docs/labs/oob1.html b/docs/labs/oob1.html index 9837a624..263676c2 100644 --- a/docs/labs/oob1.html +++ b/docs/labs/oob1.html @@ -83,16 +83,16 @@

Task Information

if the minimum length of a response (1 + 2 + 16) is more than the length claimed by s->s3->rrec.length, -and return 0 without sending a heartbeat, +then return 0 without sending a heartbeat, This will prevent trying to create a heartbeat when there's not enough room to create a heartbeat at all.

Second, modify the code so that if the minimum length of a response with a payload -(1 + 2 + payload + 16 +(1 + 2 + payload + 16) is more than the total length for a response given in s->s3->rrec.length then again -return 0 without sending a heartbeat, +return 0 without sending a heartbeat.

This will prevent trying to create a heartbeat when there's not enough room to create one and there was a payload to return as a heartbeat. diff --git a/docs/labs/oob1.js b/docs/labs/oob1.js index 891b7ae5..46ad5867 100644 --- a/docs/labs/oob1.js +++ b/docs/labs/oob1.js @@ -2,24 +2,66 @@ info = { hints: [ { - absent: "if", - text: "Begin with \"if\" as we will return 0 when there is a problem." + absent: "^ if", + text: "Begin with \"if\" as we will return 0 when there is a problem.", + examples: [ + [ " foo " ], + ], }, { - absent: String.raw`\(`, - text: "Need \"(...)\" around the condition after an if statement." + absent: String.raw`\(.*\)`, + text: "Need \"(...)\" around the condition after an if statement.", + examples: [ + [ " if " ], + ], }, { - absent: ">", - text: "Need comparison \"if ( ... > ....)\"" + absent: "[<>]", + text: "Need comparison \"if ( ... > ....)\"", + examples: [ + [ " if ( x )" ], + ], }, { absent: String.raw`s -> s3 -> rrec \. length`, - text: "Need to compare a value with s->s3->rrec.length" + text: "Need to compare a value with s->s3->rrec.length", + examples: [ + [ " if ( length > 3 )" ], + ], }, { - absent: "return", - text: "Need \"return 0;\" to skip attempts to send a too-long response." + absent: "return 0 ;", + text: "Need \"return 0;\" to skip attempts to send a too-long response.", + }, + { + absent: "^ if", + text: "Begin with \"if\" as we will return 0 when there is a problem.", + index: 1, + }, + { + absent: String.raw`\(.*\)`, + text: "Need \"(...)\" around the condition after an if statement.", + index: 1, + }, + { + absent: "[<>]", + text: "Need comparison \"if ( ... > ....)\"", + index: 1, + }, + { + absent: String.raw`s -> s3 -> rrec \. length`, + text: "Need to compare a value with s->s3->rrec.length", + index: 1, + }, + { + absent: "return 0 ;", + text: "Need \"return 0;\" to skip attempts to send a too-long response.", + index: 1, + }, + { + absent: "payload", + text: "Need to consider the payload length.", + index: 1, }, ], definitions: [