Comments (1)
Everything is dynamic in Forth, also the test code. It's only limited by your imagination.
Look for example at the test code I wrote for a yet-to-be-approved Forth translation of 'parseInt() reloaded':
: times { xt n -- } n 0 +do xt execute loop ;
: shouldbe { s len } <{ s len parseint -> s len predefined-solution }> ;
:noname ten$ -$+ one$+ shouldbe ; 100 times
:noname one$ 100$+ and$+ ten$+ -$+ one$+ shouldbe ; 100 times
The shouldbe
is evaluated at runtime, but could just as easily have a dynamic stack input.
from ttester-codewars.
Related Issues (9)
- Time calculation in the "IT" blocks is broken in Forth when the tests crash HOT 24
- Forth: Problem with "ttester.fs with extension for Codewars" HOT 9
- Custom test failure messages? HOT 1
- `discode` does not work on runner HOT 2
- Forth: "WRONG NUMBER OF FP RESULTS: run-tests" HOT 6
- Dropping past the arguments stack causes test display to show wrong numbers HOT 3
- Prevent users from manipulating return stack past user's frame HOT 2
- Data stack is not empty in user code HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttester-codewars.