func main() { //println("Start test running in: " + tardisgolib.Platform()) testManyGoroutines() testChanSelect() tourfib() testCaseSensitivity() testInit() testConst() testUTF() testFloat() testMultiRet() testAppend() testStruct() testHeader() testCopy() testInFuncPtr() testCallBy() testMap() testNamed() testFuncPtr() testIntOverflow() testSlices() testChan() testComplex() testUTF8() testString() testClosure() testVariadic(42) testVariadic(40, 2) testVariadic(42, -5, 3, 2) testInterface() testInterfaceMethods() testStrconv() testTour64() testUintDiv32() testUintDiv64() testDefer() aGrWG.Wait() TEQint32(tardisgolib.CPos()+" testManyGoroutines() sync/atomic counter:", aGrCtr, 0) if tardisgolib.Host() == "haxe" { TEQ(tardisgolib.CPos(), int(tardisgolib.HAXE("42;")), int(42)) TEQ(tardisgolib.CPos(), string(tardisgolib.HAXE("'test';")), "test") TEQ(tardisgolib.CPos()+"Num Haxe GR post-wait", tardisgolib.NumGoroutine(), 1) } else { TEQ(tardisgolib.CPos()+"Num Haxe GR post-wait", tardisgolib.NumGoroutine(), 2) } //println("End test running in: " + tardisgolib.Platform()) //println("再见!Previous two chinese characters should say goodbye! (testing unicode output)") //println() }
// NumGoroutine emulates runtime.NumGoroutine func NumGoroutine() int { return tardisgolib.NumGoroutine() }