diff options
author | Jason Perkins <starkos@industriousone.com> | 2012-10-19 01:48:43 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2012-10-19 01:48:43 +0400 |
commit | fda91cd22ecd00faf4ca956d683dda76b800ca5f (patch) | |
tree | 8df1905ed21feb2349eb46429698f6a29a43478e /tests | |
parent | c852bb78f7740492486639e6f9cd57302b5336cf (diff) |
Patch 3462994: Make flag values case-insensitive
Diffstat (limited to 'tests')
-rw-r--r-- | tests/base/test_api.lua | 18 |
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 |