@@ -55,22 +55,22 @@ TestToggleFakeFullscreen_MakeFullscreen() {
5555 ; Verify calls
5656 if (mockApi.calls.Length ! = 3 ) {
5757 FileOpen (" *" , " w `n" ).Write (" Fail: Expected 3 calls, got " mockApi.calls.Length " `n" )
58- return false
58+ ExitApp ( 1 )
5959 }
6060
6161 if (mockApi.calls[1 ].method ! = " WinGetStyle" ) {
6262 FileOpen (" *" , " w `n" ).Write (" Fail: First call was not WinGetStyle`n" )
63- return false
63+ ExitApp ( 1 )
6464 }
6565
6666 if (mockApi.calls[2 ].method ! = " WinSetStyle" ) {
6767 FileOpen (" *" , " w `n" ).Write (" Fail: Second call was not WinSetStyle`n" )
68- return false
68+ ExitApp ( 1 )
6969 }
7070
7171 if (mockApi.calls[3 ].method ! = " WinMove" ) {
7272 FileOpen (" *" , " w `n" ).Write (" Fail: Third call was not WinMove`n" )
73- return false
73+ ExitApp ( 1 )
7474 }
7575
7676 FileOpen (" *" , " w `n" ).Write (" Pass: MakeFullscreen`n" )
@@ -86,17 +86,17 @@ TestToggleFakeFullscreen_RestoreWindow() {
8686 ; Verify calls
8787 if (mockApi.calls.Length ! = 3 ) {
8888 FileOpen (" *" , " w `n" ).Write (" Fail: Expected 3 calls, got " mockApi.calls.Length " `n" )
89- return false
89+ ExitApp ( 1 )
9090 }
9191
9292 if (mockApi.calls[2 ].method ! = " WinSetStyle" ) {
9393 FileOpen (" *" , " w `n" ).Write (" Fail: Second call was not WinSetStyle`n" )
94- return false
94+ ExitApp ( 1 )
9595 }
9696
9797 if (mockApi.calls[3 ].method ! = " WinRestore" ) {
9898 FileOpen (" *" , " w `n" ).Write (" Fail: Third call was not WinRestore`n" )
99- return false
99+ ExitApp ( 1 )
100100 }
101101
102102 FileOpen (" *" , " w `n" ).Write (" Pass: RestoreWindow`n" )
@@ -112,7 +112,7 @@ TestGetMonitorAtPos_InsideMonitor() {
112112 res := GetMonitorAtPos(500 , 500 , mockApi)
113113 if (res ! = 1 ) {
114114 FileOpen (" *" , " w `n" ).Write (" Fail: Expected 1, got " res " `n" )
115- return false
115+ ExitApp ( 1 )
116116 }
117117 FileOpen (" *" , " w `n" ).Write (" Pass: GetMonitorAtPos_InsideMonitor`n" )
118118 return true
@@ -127,7 +127,7 @@ TestGetMonitorAtPos_OutsideMonitors() {
127127 res := GetMonitorAtPos(- 100 , 500 , mockApi)
128128 if (res ! = - 1 ) {
129129 FileOpen (" *" , " w `n" ).Write (" Fail: Expected -1, got " res " `n" )
130- return false
130+ ExitApp ( 1 )
131131 }
132132 FileOpen (" *" , " w `n" ).Write (" Pass: GetMonitorAtPos_OutsideMonitors`n" )
133133 return true
@@ -143,7 +143,7 @@ TestGetMonitorAtPos_MultipleMonitors() {
143143 res := GetMonitorAtPos(- 500 , 500 , mockApi)
144144 if (res ! = 2 ) {
145145 FileOpen (" *" , " w `n" ).Write (" Fail: Expected 2, got " res " `n" )
146- return false
146+ ExitApp ( 1 )
147147 }
148148 FileOpen (" *" , " w `n" ).Write (" Pass: GetMonitorAtPos_MultipleMonitors`n" )
149149 return true
@@ -157,4 +157,4 @@ TestGetMonitorAtPos_OutsideMonitors()
157157TestGetMonitorAtPos_MultipleMonitors()
158158
159159FileOpen (" *" , " w `n" ).Write (" All tests complete.`n" )
160- ExitApp
160+ ExitApp ( 0 )
0 commit comments