Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2012-10-19 01:48:43 +0400
committerJason Perkins <starkos@industriousone.com>2012-10-19 01:48:43 +0400
commitfda91cd22ecd00faf4ca956d683dda76b800ca5f (patch)
tree8df1905ed21feb2349eb46429698f6a29a43478e /tests
parentc852bb78f7740492486639e6f9cd57302b5336cf (diff)
Patch 3462994: Make flag values case-insensitive
Diffstat (limited to 'tests')
-rw-r--r--tests/base/test_api.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/base/test_api.lua b/tests/base/test_api.lua
index 7727d4b..3c8ac27 100644
--- a/tests/base/test_api.lua
+++ b/tests/base/test_api.lua
@@ -384,3 +384,21 @@
uuid "7CBB5FC2-7449-497f-947F-129C5129B1FB"
test.isequal(premake.CurrentContainer.uuid, "7CBB5FC2-7449-497F-947F-129C5129B1FB")
end
+
+
+--
+-- Fields with allowed value lists should be case-insensitive.
+--
+
+ function suite.flags_onCaseMismatch()
+ premake.CurrentConfiguration = {}
+ flags "symbols"
+ test.isequal(premake.CurrentConfiguration.flags[1], "Symbols")
+ end
+
+ function suite.flags_onCaseMismatchAndAlias()
+ premake.CurrentConfiguration = {}
+ flags "optimisespeed"
+ test.isequal(premake.CurrentConfiguration.flags[1], "OptimizeSpeed")
+ end
+ \ No newline at end of file