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:
Manu Evans 2015-08-27 22:52:28 +10:00
commit c9731e5435

View File

@ -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