Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
setup
if the platform is "win32" then
test the fontlanguage of "Aharoni" is "Hebrew"
test the fontlanguage of "System" is "ANSI"
else
-- TODO - test font languages on other platforms
test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .
Anyone?
Last edited by richmond62 on Fri Nov 24, 2023 1:07 pm, edited 1 time in total.
Neither "setup" (except in "page setup"), "teardown" nor "test" are part of the LC scripting language.
So I guess these are custom handlers/functions.
Nothing in the card or stack script or in a substack?
setup
if the platform is "win32" then
test the fontlanguage of "Aharoni" is "Hebrew"
test the fontlanguage of "System" is "ANSI"
else
-- TODO - test font languages on other platforms
test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .
Anyone?
Richmond,
This sounds as it is taken from the testing suites. Did you get it from GitHub?
Livecode has an extensive suite of tests that run to find regressions early on.
Note that "test" is also not part of Livecode.
setup
if the platform is "win32" then
test the fontlanguage of "Aharoni" is "Hebrew"
test the fontlanguage of "System" is "ANSI"
else
-- TODO - test font languages on other platforms
test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .
Anyone?
Richmond,
This sounds as it is taken from the testing suites. Did you get it from GitHub?
Livecode has an extensive suite of tests that run to find regressions early on.
Note that "test" is also not part of Livecode.
richmond62 wrote: Fri Nov 24, 2023 2:22 pm
Are you going to translate this literally?
"so ist das noch immer eine Kartoffel im Munde des Herrn Pastor."