Merge pull request #233 from LORgames/ssurtees/casingIssuesTestCase
Added test case to ensure the functionality isn't broken in the future.
This commit is contained in:
commit
c9731e5435
@ -28,3 +28,17 @@
|
||||
function suite.returnsCorrectOption_onMixedCase()
|
||||
test.isnotnil(_OPTIONS["TestOpt"])
|
||||
end
|
||||
|
||||
--
|
||||
-- Because we can't control how the user will type in options in the
|
||||
-- premake script, keys should be stored in lowercase.
|
||||
--
|
||||
|
||||
function suite.storesOptionCorrectly_onMixedCase()
|
||||
newoption {
|
||||
trigger = "TestOpt2",
|
||||
description = "Testing",
|
||||
}
|
||||
|
||||
test.isnotnil(premake.option.get("testopt2"))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user