Uberi / Yunit

Super simple testing framework for AutoHotkey.
GNU Affero General Public License v3.0
53 stars 21 forks source link

Result.line and Result.file always point to main Yunit.ahk #31

Closed mmikeww closed 3 years ago

mmikeww commented 4 years ago

the output modules check the result.line and result.file to give the user more information, but these always point to the main Yunit.ahk file, which is useless in helping to quickly find the location of the assertion fail

mmikeww commented 4 years ago

see also Issue #21 it looks like maybe AHK changed the call stack at some point, because the exception now needs to be back to -1

mmikeww commented 4 years ago

@hoppfrosch am i doing something wrong? it looks like you fixed issue #21 in commit 49f0f3b26f9 , but on my machine, i need -1 in order to get the correct line number. -2 shows the Yunit.ahk line number

hoppfrosch commented 3 years ago

Sorry for the much to late answer .... lost this project out of focus.

Verified that -1 is the correct value with AutoHotkey v2.0beta1. Cannot comprehend when call stack was changed.