
![]() |
Show Changes |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
![]() |
Administration Page |
| Search |
History
| 8/31/2005 9:57:26 PM |
| PeterProvost-71.112.36.92 |
| 8/31/2005 9:49:11 PM |
| PeterProvost-71.112.36.92 |
| 8/31/2005 9:48:26 PM |
| PeterProvost-71.112.36.92 |
| 8/31/2005 9:10:55 AM |
| -131.107.0.105 |
| 8/31/2005 9:08:54 AM |
| -131.107.0.105 |
![]() |
List all versions |
<wiki>
Can Flexwiki be used to store fit style acceptance tests and run them with a single click? Let's try it using the run script described here:
This is an example table that comes from the example printed on the back of the HP-35 calculator. It computes (2+3) * (4/5) / sin(30) * (4^-1.5) = 1.0000 using the reverse-polish notation that HP introduced with this, the worlds first hand-held scientific calculator.
| eg.Calculator | ||
| key | x() | y() |
| 2 | 2 | |
| enter | 2 | 2 |
| 3 | 3 | 2 |
| + | 5 | |
| 4 | 4 | 5 |
| * | 20 | |
| 5 | 5 | 20 |
| / | 4 | |
| 30 | 30 | 4 |
| sin | .5 | 4 |
| / | 6 | |
| -1.5 | -1.5 | 8 |
| enter | -1.5 | -1.5 |
| 4 | 4 | -1.5 |
| x^y | .125 | 8 |
| * | 1.0000 | |
The fit.c2.com site hosts an implementation of the HP-35 calculator along with a Fit fixture that will operate it based on the above table, and, a cgi script that will run both.
Try running the script with the above link.
Darn. It doesn't work. That's because the fit.c2.com wiki encloses it's generated text inside a <wiki> tag that this server doesn't support. This lets the server use tables for formatting and distinguish those from tables used for test data. I made a feable attempt to add the wiki tag to this page but of course that didn't work. Look at the source for this page, http://fit.c2.com/wiki.cgi?CalculatorExample , if you want to see the wiki tag in action.
Double darn. I'm having a second problem running this and other fit.c2.com examples from within Microsoft. It seems that our proxy server is caching old results from previous run.cgi runs and returning them in place of the desired results. Neither of these two problems are unsurmountable but they do prevent me from showing off this capability here. -- WardCunningham
</wiki>