23 years ago 20021126

0a1,23
Setup defines the file configuration that we will be recording within. Here we start with nothing to keep our first tests simple.

| Setup |


You can record text without having a preallocated number. Here we record our first three answers, the single words zero, one and two. They will be assigned the corresponding bfl numbers.

| Record ||
| text | number() |
| zero | 0 |
| one | 1 |
| two | 2 |

We can look this text up by number in any order.

| Lookup ||
| number | text() |
| 1 | one |
| 2 | two |
| 1 | one |
| 0 | zero |
| 00 | error |
| 3 | error |

4 days later 20021201

23a24,27



BuiltForLifeNumber indicates that 0 should be an error. --DaveSmith

2 days later 20021203

26c26,31
BuiltForLifeNumber indicates that 0 should be an error. --DaveSmith

The expression in BuiltForLifeNumber indicates that 0 should be an error. --DaveSmith

Hmmm. I wonder which is rignt? Opinions? -- WardCunningham


17 seconds later TestSimpleRecordAndLookup

29c29
Hmmm. I wonder which is rignt? Opinions? -- WardCunningham
Hmmm. I wonder which choice is best? Opinions? -- WardCunningham