From 773aecbee7d0ff78728cc08ba537933284dcca9f Mon Sep 17 00:00:00 2001 From: Sam Surtees Date: Thu, 27 Aug 2015 22:34:42 +1000 Subject: [PATCH] Added test case to ensure the functionality isn't broken in the future. --- tests/base/test_option.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/base/test_option.lua b/tests/base/test_option.lua index b8151505..6489b4b0 100644 --- a/tests/base/test_option.lua +++ b/tests/base/test_option.lua @@ -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