Comments (6)
Going over the checklist:
-
Select programming language variant(not applicable) - Select testing framework:
tcltest
ships with tclsh8.4+ - Write first exercise: #5 (hello-world)
- Plan initial core exercises: The plan is to first copy the Ruby core track.
- Add the track to the site as inactive
- Request a track icon: exercism/website-icons#26
- Plan optional exercises
- Write "getting started" instructions: Installation instructions not done yet; work in progress: #4.
from tcl.
https://wuhrr.wordpress.com/2011/03/28/getting-started-with-tcltest/
from tcl.
Idea by @sebres for making single-file testing fail fast:
proc test args {
upvar ::tcltest::numTests numTests
set numTestsFailed $numTests(Failed)
uplevel [list ::tcltest::test {*}$args]
if {$numTests(Failed) > $numTestsFailed} {
puts "*** EXIT ON ERROR ***"
exit 1
}
}
Updated: Fixed nt
-> numTests
in all places. :-)
from tcl.
well, initially I wrote:
- upvar ::tcltest::numTests numTests
+ upvar ::tcltest::numTests nt
so either rename nt
var everywhere (or apply fix above;)
from tcl.
Thanks. :-) I'll save your second suggestion here as well:
trace add variable ::tcltest::numTests(Failed) write {
apply {args {
puts {*** EXIT ON ERROR ***}
exit 1
}}
}
from tcl.
Closing this issue, since the Tcl track has been bootstrapped without test generators so far.
from tcl.
Related Issues (20)
- [v3] Update status of Concept Exercises HOT 1
- Launch Tracker 🔴 HOT 3
- Extract track-specific help instructions from `config/exercise_readme.go.tmpl`
- Extract track-specific test instructions from `config/exercise_readme.go.tmpl`
- All the test files have too much boilerplate
- Build analyzer HOT 1
- Build representer HOT 1
- Check docs are up to date
- Language description needs improvement HOT 1
- flatten-array: add additional instructions about Tcl's lack of NULL value.
- robot-name exercise could use a test to check if the names are shuffled HOT 1
- tests which expect a boolean result should expect to be true
- Apply Tcl style guide to example solutions
- new user confusion about `puts` versus `return`
- Concepts
- Gigasecond: append instructions
- Add commented out test timings to test files.
- Building a training set of tags for tcl HOT 22
- Deprecate `accumulate`? HOT 1
- error-handling could use additional instructions
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 tcl.