diff --git a/test/css/no-strict-math/no-sm-operations.css b/test/css/no-strict-math/no-sm-operations.css new file mode 100644 index 00000000..f1832023 --- /dev/null +++ b/test/css/no-strict-math/no-sm-operations.css @@ -0,0 +1,12 @@ +.named-colors-in-expressions { + color-0: 0 -red; + color-1: #000101; + color-2: #ff0000; + color-3: #ff0000; +} +.named-colors-in-expressions-bar-red { + x: y; +} +.named-colors-in-expressions-barred { + a: a; +} diff --git a/test/index.js b/test/index.js index d8a7bb17..a7aab0eb 100644 --- a/test/index.js +++ b/test/index.js @@ -52,6 +52,7 @@ lessTester.runTestSet({plugin: 'test/plugins/postprocess/'}, "postProcessorPlugi lessTester.runTestSet({plugin: 'test/plugins/preprocess/'}, "preProcessorPlugin/"); lessTester.runTestSet({plugin: 'test/plugins/visitor/'}, "visitorPlugin/"); lessTester.runTestSet({plugin: 'test/plugins/filemanager/'}, "filemanagerPlugin/"); +lessTester.runTestSet({}, "no-strict-math/"); lessTester.testSyncronous({syncImport: true}, "import"); lessTester.testSyncronous({syncImport: true}, "css"); lessTester.testNoOptions(); diff --git a/test/less/no-strict-math/no-sm-operations.less b/test/less/no-strict-math/no-sm-operations.less new file mode 100644 index 00000000..3fe6791c --- /dev/null +++ b/test/less/no-strict-math/no-sm-operations.less @@ -0,0 +1,10 @@ +.named-colors-in-expressions { + color-0: 0 -red; + color-1: 1 - red; + color-2: red * 2; + color-3: 2 * red; + @3: -red; + &-bar@{3} {x: y} + @color: red; + &-bar@{color} {a: a} +}