TH1, aka Test Harness 1, is a programming language created in 2015.
#2832on PLDB | 10Years Old |
TH1 is a very small scripting language used to help generate web-page content in Fossil. TH1 began as a minimalist re-implementation of the Tcl scripting language. There was a need to test the SQLite library on Symbian phones, but at that time all of the test cases for SQLite were written in Tcl and Tcl could not be easily compiled on the SymbianOS. So TH1 was developed as a cut-down version of Tcl that would facilitate running the SQLite test scripts on SymbianOS.
if {$current eq "dev"} {
puts "hello"
}
else {
puts "world"
}