diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /vendor/leafo/lessphp/tests/inputs/arity.less | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'vendor/leafo/lessphp/tests/inputs/arity.less')
-rw-r--r-- | vendor/leafo/lessphp/tests/inputs/arity.less | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/vendor/leafo/lessphp/tests/inputs/arity.less b/vendor/leafo/lessphp/tests/inputs/arity.less new file mode 100644 index 00000000..9998fd4a --- /dev/null +++ b/vendor/leafo/lessphp/tests/inputs/arity.less @@ -0,0 +1,77 @@ + +// simple arity + +.hello(@a) { + hello: one; +} + +.hello(@a, @b) { + hello: two; +} + +.hello(@a, @b, @c) { + hello: three; +} + + +.world(@a, @b, @c) { + world: three; +} + +.world(@a, @b) { + world: two; +} + +.world(@a) { + world: one; +} + +.one { + .hello(1); + .world(1); +} + +.two { + .hello(1, 1); + .world(1, 1); +} + +.three { + .hello(1, 1, 1); + .world(1, 1, 1); +} + + +// arity with default values + +.foo(@a, @b: cool) { + foo: two @b; +} + +.foo(@a, @b: cool, @c: yeah) { + foo: three @b @c; +} + + +.baz(@a, @b, @c: yeah) { + baz: three @c; +} + +.baz(@a, @b: cool) { + baz: two @b; +} + + +.multi-foo { + .foo(1); + .foo(1, 1); + .foo(1,1,1); +} + +.multi-baz { + .baz(1); + .baz(1, 1); + .baz(1,1,1); +} + + |