3 Function doUnitTest
As String
4 ' Trying to create too long string should generate proper BASIC overflow error.
5 ' Longest possible string is 2147483638 wchar_t (2G - 10).
6 ' This tries to create string with 2G wchar_t. If it does not overflow, test fails.
7 ' If overflow is not safe, it segfaults.
8 On Error GoTo errorHandler
9 Dim s
As String, i
As Integer