comparison go/godc/godc_test.go @ 38:9943c30ee2aa

- typo fix
author Tassilo Philipp
date Mon, 13 Apr 2020 21:41:59 +0200
parents 0cfcc391201f
children
comparison
equal deleted inserted replaced
37:8c8f848131c6 38:9943c30ee2aa
197 rd = vm.CallDouble(lm.FindSymbol("copysign")) 197 rd = vm.CallDouble(lm.FindSymbol("copysign"))
198 fmt.Printf("copysign(-61.4, 42.4) = %f\n", rd) 198 fmt.Printf("copysign(-61.4, 42.4) = %f\n", rd)
199 if(rd != 61.4) { t.FailNow() } 199 if(rd != 61.4) { t.FailNow() }
200 200
201 201
202 // Ellipse 202 // Ellipsis
203 vm.Mode(DC_CALL_C_ELLIPSIS) 203 vm.Mode(DC_CALL_C_ELLIPSIS)
204 vm.Reset() 204 vm.Reset()
205 buf := make([]byte, 1000) 205 buf := make([]byte, 1000)
206 bufPtr := unsafe.Pointer(&buf[0]) 206 bufPtr := unsafe.Pointer(&buf[0])
207 cs3 := vm.AllocCString("Four:%d | \"Hello\":%s | Pi:%f") 207 cs3 := vm.AllocCString("Four:%d | \"Hello\":%s | Pi:%f")