change x= to *=, add unit tests and improve existing tests

This commit is contained in:
Clarence "Sparr" Risher
2017-10-05 19:41:43 -04:00
committed by Andy Meneely
parent b3bd8f03d8
commit 8509ab5728
4 changed files with 17 additions and 8 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ You can also **modify** data as they get passed through extends::
The following operators are supported within evaluating ``extends``
* ``+=`` will add the giuven number to the inherited number
* ``-=`` will subtract the given number from the inherited number
* ``x=`` will multiply the inherited number by the given number
* ``*=`` will multiply the inherited number by the given number
* ``/=`` will divide the inherited number by the given number
``+=`` and ``-=`` also support :doc:`/units`
@@ -154,7 +154,7 @@ As you might expect, ``extends`` can be composed multiple times::
x: += 10 # evaluates to 110
aristotle:
extends: plato
x: x= 2 # evaluates to 220
x: "*= 2" # evaluates to 220, note that YAML requires quotes here
Yes, ``extends`` has Multiple Inheritance
-----------------------------------------