Coder Social home page Coder Social logo

Bootstrap Tcl track about tcl HOT 6 CLOSED

sshine avatar sshine commented on August 25, 2024
Bootstrap Tcl track

from tcl.

Comments (6)

sshine avatar sshine commented on August 25, 2024

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.

sshine avatar sshine commented on August 25, 2024

https://wuhrr.wordpress.com/2011/03/28/getting-started-with-tcltest/

from tcl.

sshine avatar sshine commented on August 25, 2024

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.

sebres avatar sebres commented on August 25, 2024

well, initially I wrote:

-    upvar ::tcltest::numTests numTests
+    upvar ::tcltest::numTests nt

so either rename nt var everywhere (or apply fix above;)

from tcl.

sshine avatar sshine commented on August 25, 2024

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.

sshine avatar sshine commented on August 25, 2024

Closing this issue, since the Tcl track has been bootstrapped without test generators so far.

from tcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.